Skip to content

Commit dc143e2

Browse files
author
Luis Sanchez
committed
[FAB-3060] skip java chaincode tests on non-x86_84
Java chaincode does not currently work on ppc64le and s390x. See FAB-1794 for more info. Change-Id: I2e03b0b0e9b2b1a26c88f7669dfe941dfd0816bd Signed-off-by: Luis Sanchez <[email protected]>
1 parent 7984725 commit dc143e2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

core/chaincode/exectransaction_test.go

+9
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import (
2323
"net"
2424
"os"
2525
"path/filepath"
26+
"runtime"
2627
"strconv"
2728
"strings"
2829
"sync"
@@ -643,6 +644,10 @@ func TestExecuteInvokeTransaction(t *testing.T) {
643644
for _, tc := range testCases {
644645
t.Run(tc.chaincodeType.String(), func(t *testing.T) {
645646

647+
if tc.chaincodeType == pb.ChaincodeSpec_JAVA && runtime.GOARCH != "amd64" {
648+
t.Skip("No Java chaincode support yet on non-x86_64.")
649+
}
650+
646651
chainID := util.GetTestChainID()
647652

648653
lis, err := initPeer(chainID)
@@ -1549,6 +1554,10 @@ func TestChaincodeInitializeInitError(t *testing.T) {
15491554
for _, tc := range testCases {
15501555
t.Run(tc.name+"_"+tc.chaincodeType.String(), func(t *testing.T) {
15511556

1557+
if tc.chaincodeType == pb.ChaincodeSpec_JAVA && runtime.GOARCH != "amd64" {
1558+
t.Skip("No Java chaincode support yet on non-x86_64.")
1559+
}
1560+
15521561
// initialize peer
15531562
if listener, err := initPeer(channelID); err != nil {
15541563
t.Errorf("Error creating peer: %s", err)

0 commit comments

Comments
 (0)