From cde989b8e5dd674b3c2b417cb463a61dc8902cfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Jochum?= Date: Thu, 7 Dec 2023 05:47:31 +0100 Subject: [PATCH] fix(client/orb_transport/*): disable tests on CI. --- client/orb_transport/grpc/grpc_test.go | 5 +++++ client/orb_transport/h2c/h2c_test.go | 5 +++++ client/orb_transport/hertzh2c/hertzh2c_test.go | 5 +++++ client/orb_transport/hertzhttp/hertzhttp_test.go | 5 +++++ client/orb_transport/http/http_test.go | 5 +++++ client/orb_transport/http3/http3_test.go | 5 +++++ client/orb_transport/https/https_test.go | 5 +++++ 7 files changed, 35 insertions(+) diff --git a/client/orb_transport/grpc/grpc_test.go b/client/orb_transport/grpc/grpc_test.go index 863c0957..c6c8ec07 100644 --- a/client/orb_transport/grpc/grpc_test.go +++ b/client/orb_transport/grpc/grpc_test.go @@ -1,6 +1,7 @@ package grpc import ( + "os" "path/filepath" "runtime" "testing" @@ -28,6 +29,10 @@ func newSuite() *tests.TestSuite { } func TestSuite(t *testing.T) { + if os.Getenv("CI") != "" { + t.Skip("Skipping testing in CI environment") + } + // Run the tests. suite.Run(t, newSuite()) } diff --git a/client/orb_transport/h2c/h2c_test.go b/client/orb_transport/h2c/h2c_test.go index 6b99b5fa..b8e25c67 100644 --- a/client/orb_transport/h2c/h2c_test.go +++ b/client/orb_transport/h2c/h2c_test.go @@ -1,6 +1,7 @@ package h2c import ( + "os" "path/filepath" "runtime" "testing" @@ -28,6 +29,10 @@ func newSuite() *tests.TestSuite { } func TestSuite(t *testing.T) { + if os.Getenv("CI") != "" { + t.Skip("Skipping testing in CI environment") + } + // Run the tests. suite.Run(t, newSuite()) } diff --git a/client/orb_transport/hertzh2c/hertzh2c_test.go b/client/orb_transport/hertzh2c/hertzh2c_test.go index 628374a4..2de5ae89 100644 --- a/client/orb_transport/hertzh2c/hertzh2c_test.go +++ b/client/orb_transport/hertzh2c/hertzh2c_test.go @@ -1,6 +1,7 @@ package hertzh2c import ( + "os" "path/filepath" "runtime" "testing" @@ -26,6 +27,10 @@ func newSuite() *tests.TestSuite { } func TestSuite(t *testing.T) { + if os.Getenv("CI") != "" { + t.Skip("Skipping testing in CI environment") + } + // Run the tests. suite.Run(t, newSuite()) } diff --git a/client/orb_transport/hertzhttp/hertzhttp_test.go b/client/orb_transport/hertzhttp/hertzhttp_test.go index 06613096..5728675d 100644 --- a/client/orb_transport/hertzhttp/hertzhttp_test.go +++ b/client/orb_transport/hertzhttp/hertzhttp_test.go @@ -1,6 +1,7 @@ package hertzhttp import ( + "os" "path/filepath" "runtime" "testing" @@ -26,6 +27,10 @@ func newSuite() *tests.TestSuite { } func TestSuite(t *testing.T) { + if os.Getenv("CI") != "" { + t.Skip("Skipping testing in CI environment") + } + // Run the tests. suite.Run(t, newSuite()) } diff --git a/client/orb_transport/http/http_test.go b/client/orb_transport/http/http_test.go index 3cc4e349..7bc4427f 100644 --- a/client/orb_transport/http/http_test.go +++ b/client/orb_transport/http/http_test.go @@ -1,6 +1,7 @@ package http import ( + "os" "path/filepath" "runtime" "testing" @@ -26,6 +27,10 @@ func newSuite() *tests.TestSuite { } func TestSuite(t *testing.T) { + if os.Getenv("CI") != "" { + t.Skip("Skipping testing in CI environment") + } + // Run the tests. suite.Run(t, newSuite()) } diff --git a/client/orb_transport/http3/http3_test.go b/client/orb_transport/http3/http3_test.go index 9474c542..5664e3c2 100644 --- a/client/orb_transport/http3/http3_test.go +++ b/client/orb_transport/http3/http3_test.go @@ -1,6 +1,7 @@ package http3 import ( + "os" "path/filepath" "runtime" "testing" @@ -26,6 +27,10 @@ func newSuite() *tests.TestSuite { } func TestSuite(t *testing.T) { + if os.Getenv("CI") != "" { + t.Skip("Skipping testing in CI environment") + } + // Run the tests. suite.Run(t, newSuite()) } diff --git a/client/orb_transport/https/https_test.go b/client/orb_transport/https/https_test.go index 65a71ad8..f1b5a886 100644 --- a/client/orb_transport/https/https_test.go +++ b/client/orb_transport/https/https_test.go @@ -1,6 +1,7 @@ package https import ( + "os" "path/filepath" "runtime" "testing" @@ -26,6 +27,10 @@ func newSuite() *tests.TestSuite { } func TestSuite(t *testing.T) { + if os.Getenv("CI") != "" { + t.Skip("Skipping testing in CI environment") + } + // Run the tests. suite.Run(t, newSuite()) }