From b515b9e220ad0b0f33754f34cbbcb56ce3ef5b3e Mon Sep 17 00:00:00 2001 From: Jonathan Edey Date: Tue, 3 Oct 2023 12:22:56 -0400 Subject: [PATCH] fix: also unset STORAGE_EMULATOR_HOST after test --- storage/storage_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/storage/storage_test.go b/storage/storage_test.go index 020ed28b..a1530d1f 100644 --- a/storage/storage_test.go +++ b/storage/storage_test.go @@ -43,6 +43,7 @@ func TestNewClientEmulatorHostEnvVar(t *testing.T) { emulatorHost := "localhost:9099" os.Setenv("FIREBASE_STORAGE_EMULATOR_HOST", emulatorHost) defer os.Unsetenv("FIREBASE_STORAGE_EMULATOR_HOST") + defer os.Unsetenv("STORAGE_EMULATOR_HOST") _, err := NewClient(context.Background(), &internal.StorageConfig{ Opts: opts,