Skip to content

Commit

Permalink
Skip test if credentials aren't available
Browse files Browse the repository at this point in the history
  • Loading branch information
fasmat committed Aug 2, 2023
1 parent 61cdca8 commit 44c8305
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/beaconalarm/metrics/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ import (
)

func Test_Client(t *testing.T) {
if os.Getenv("MIMIR_ORG") == "" || os.Getenv("MIMIR_USR") == "" || os.Getenv("MIMIR_PWD") == "" {
t.Skip("MIMIR_ORG, MIMIR_USR, and MIMIR_PWD must be set")
}

logger := logtest.New(t, zapcore.InfoLevel)

genesis, err := time.Parse(time.RFC3339, "2023-07-11T23:00:00.498Z")
Expand Down

0 comments on commit 44c8305

Please sign in to comment.