Skip to content

Commit

Permalink
Only run Kafka suite and ccenv-1.4 test on amd64
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Sykes <sykesmat@us.ibm.com>
  • Loading branch information
sykesm authored and mastersingh24 committed Feb 16, 2021
1 parent 54ae5c7 commit ed8d556
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions integration/kafka/kafka_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ package kafka

import (
"encoding/json"
"runtime"
"testing"

"github.com/hyperledger/fabric/integration"
Expand All @@ -19,6 +20,9 @@ import (

func TestKafka(t *testing.T) {
RegisterFailHandler(Fail)
if runtime.GOARCH != "amd64" {
t.Skip("Kafka and ZooKeeper images may not be available for this platform")
}
RunSpecs(t, "Kafka Suite")
}

Expand Down
4 changes: 4 additions & 0 deletions integration/lifecycle/ccenv14_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"io/ioutil"
"os"
"path/filepath"
"runtime"
"syscall"

docker "github.com/fsouza/go-dockerclient"
Expand All @@ -28,6 +29,9 @@ var _ = Describe("solo network using ccenv-1.4", func() {
)

BeforeEach(func() {
if runtime.GOARCH != "amd64" {
Skip("ccenv-1.4 image may not be available for this platform")
}
var err error
testDir, err = ioutil.TempDir("", "lifecycle")
Expect(err).NotTo(HaveOccurred())
Expand Down

0 comments on commit ed8d556

Please sign in to comment.