From 045934500c385970cf1ae73770c1d65f1c213d5c Mon Sep 17 00:00:00 2001 From: maduris Date: Tue, 12 Mar 2024 12:53:06 +1100 Subject: [PATCH] fix test --- .../internal/datasource/database_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/receiver/googlecloudspannerreceiver/internal/datasource/database_test.go b/receiver/googlecloudspannerreceiver/internal/datasource/database_test.go index 48d4b6e6f64c..03e281fe1f05 100644 --- a/receiver/googlecloudspannerreceiver/internal/datasource/database_test.go +++ b/receiver/googlecloudspannerreceiver/internal/datasource/database_test.go @@ -60,6 +60,8 @@ func TestNewDatabaseFromClientWithRole(t *testing.T) { ctx := context.Background() databaseID := databaseID() + t.Setenv("GOOGLE_APPLICATION_CREDENTIALS", "../../testdata/serviceAccount.json") + database, err := NewDatabase(ctx, databaseID, "", true) assert.NoError(t, err)