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)