Skip to content

Commit

Permalink
Update Omdb Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jisin0 committed Jun 1, 2024
1 parent 35c4b41 commit 4b53357
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions omdb/omdb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ var (
)

func init() {
// write your api key to apikey.txt to run tests
r, err := os.ReadFile("apikey.txt")
if err != nil {
panic("failed to open apikey file")
// Set your omdb api key as environment var to run tests
s := os.Getenv("OMDB_API_KEY")
if s == "" {
panic("OMDB_API_KEY not set")
}

apiKey = string(r)
apiKey = s

client = omdb.NewClient(apiKey)
}

0 comments on commit 4b53357

Please sign in to comment.