Skip to content

Commit

Permalink
Disable tests which can't run in CI yet.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiante committed Dec 8, 2023
1 parent cb8576e commit 0874843
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions r_get_store_status_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import (
)

func TestStoreClient_GetStoreStatus(t *testing.T) {
testPrelude(t)

ctx := context.Background()
user := easclient.NewUserClaims("[email protected]")
ctx = user.SetOnContext(ctx)
Expand Down
7 changes: 7 additions & 0 deletions store_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"errors"
"fmt"
"os"
"testing"

"github.com/DEXPRO-Solutions-GmbH/easclient"
"github.com/joho/godotenv"
Expand All @@ -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")
}
}

0 comments on commit 0874843

Please sign in to comment.