Skip to content

Commit 4eea8cf

Browse files
committed
chore: break tests if key is set
Signed-off-by: Taylor Price <[email protected]>
1 parent f617a86 commit 4eea8cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exec_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import (
1111
)
1212

1313
func TestMain(m *testing.M) {
14-
if os.Getenv("OPENAI_API_KEY") == "" {
15-
panic("OPENAI_API_KEY not set")
14+
if os.Getenv("OPENAI_API_KEY") != "" {
15+
panic("OPENAI_API_KEY is set.")
1616
}
1717

1818
os.Exit(m.Run())

0 commit comments

Comments
 (0)