Skip to content

Commit

Permalink
[FAB-3060] skip java chaincode tests on non-x86_84
Browse files Browse the repository at this point in the history
Java chaincode does not currently work on ppc64le and
s390x. See FAB-1794 for more info.

Change-Id: I2e03b0b0e9b2b1a26c88f7669dfe941dfd0816bd
Signed-off-by: Luis Sanchez <sanchezl@us.ibm.com>
  • Loading branch information
Luis Sanchez committed Apr 10, 2017
1 parent 7984725 commit dc143e2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions core/chaincode/exectransaction_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"net"
"os"
"path/filepath"
"runtime"
"strconv"
"strings"
"sync"
Expand Down Expand Up @@ -643,6 +644,10 @@ func TestExecuteInvokeTransaction(t *testing.T) {
for _, tc := range testCases {
t.Run(tc.chaincodeType.String(), func(t *testing.T) {

if tc.chaincodeType == pb.ChaincodeSpec_JAVA && runtime.GOARCH != "amd64" {
t.Skip("No Java chaincode support yet on non-x86_64.")
}

chainID := util.GetTestChainID()

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

if tc.chaincodeType == pb.ChaincodeSpec_JAVA && runtime.GOARCH != "amd64" {
t.Skip("No Java chaincode support yet on non-x86_64.")
}

// initialize peer
if listener, err := initPeer(channelID); err != nil {
t.Errorf("Error creating peer: %s", err)
Expand Down

0 comments on commit dc143e2

Please sign in to comment.