Skip to content

Commit

Permalink
Merge "[FAB-3060] skip java chaincode tests on non-x86_84"
Browse files Browse the repository at this point in the history
  • Loading branch information
ghaskins authored and Gerrit Code Review committed Apr 11, 2017
2 parents a076bba + dc143e2 commit e77644d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions core/chaincode/exectransaction_test.go
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 e77644d

Please sign in to comment.