Skip to content

Commit

Permalink
update integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBger committed Sep 9, 2024
1 parent 1dba2b3 commit f0edf83
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,18 @@ func TestIntegration(t *testing.T) {
t.Run(c.name, func(t *testing.T) {
t.Parallel()

explorerApiKey := os.Getenv(c.explorerApiKeyEnvName)
if explorerApiKey == "" && c.apiKeyNeeded {
fmt.Printf("NO %s has been provided, please make sure to provide it to enable code generation...", c.explorerApiKeyEnvName)
if os.Getenv("TEST_LOCAL_CODEGEN") == "true" {
explorerApiKey := os.Getenv(c.explorerApiKeyEnvName)
if explorerApiKey == "" && c.apiKeyNeeded {
fmt.Printf("NO %s has been provided, please make sure to provide it to enable code generation...", c.explorerApiKeyEnvName)
}
}

runArgs := []string{
"run",
"--rm",
"--name",
c.name,
"--platform",
"linux/amd64",
"-v",
Expand Down

0 comments on commit f0edf83

Please sign in to comment.