Skip to content

Commit

Permalink
fix: Make sure the pubsub tests clean up after themselves even if the…
Browse files Browse the repository at this point in the history
…y fail.
  • Loading branch information
schwern committed Feb 16, 2023
1 parent 2fb3de9 commit 8e69920
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion momento/pub_sub_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ var cacheName = os.Getenv("TEST_CACHE_NAME")

func TestMain(m *testing.M) {
setup()
defer teardown(client)
m.Run()
teardown(client)
}

func getClient() SimpleCacheClient {
Expand Down

0 comments on commit 8e69920

Please sign in to comment.