From 08748433ffc008b2586fbfec026a8a0fe422de11 Mon Sep 17 00:00:00 2001 From: fabiante Date: Fri, 8 Dec 2023 22:28:05 +0100 Subject: [PATCH] Disable tests which can't run in CI yet. --- r_get_store_status_test.go | 2 ++ store_client_test.go | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/r_get_store_status_test.go b/r_get_store_status_test.go index 07febfb..14c0494 100644 --- a/r_get_store_status_test.go +++ b/r_get_store_status_test.go @@ -9,6 +9,8 @@ import ( ) func TestStoreClient_GetStoreStatus(t *testing.T) { + testPrelude(t) + ctx := context.Background() user := easclient.NewUserClaims("test@dexpro.de") ctx = user.SetOnContext(ctx) diff --git a/store_client_test.go b/store_client_test.go index d2869ce..22f6dd8 100644 --- a/store_client_test.go +++ b/store_client_test.go @@ -4,6 +4,7 @@ import ( "errors" "fmt" "os" + "testing" "github.com/DEXPRO-Solutions-GmbH/easclient" "github.com/joho/godotenv" @@ -27,3 +28,9 @@ func init() { DefaultClient = easclient.NewStoreClient(client) } + +func testPrelude(t *testing.T) { + if os.Getenv("GITHUB_ACTION") != "" { + t.Skip("Tests can't currently be run in the GitHub Action environment. We will first have to make it possible to run the EAS or a mocked variant in CI") + } +}