From b5612846e82ba4d58d8cbdc492566b5e5480042d Mon Sep 17 00:00:00 2001 From: "karoline.karkosch" Date: Mon, 9 Jan 2023 15:16:11 +0100 Subject: [PATCH] Fix tests --- pkg/saved_objects/saved_objects_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/saved_objects/saved_objects_test.go b/pkg/saved_objects/saved_objects_test.go index 187d70a..bf3c45f 100644 --- a/pkg/saved_objects/saved_objects_test.go +++ b/pkg/saved_objects/saved_objects_test.go @@ -38,7 +38,7 @@ func TestNewSavedObjectsProvider(t *testing.T) { } for _, testCase := range testCases { t.Run(testCase.desc, func(t *testing.T) { - provider := NewSavedObjectsProvider(testCase.baseUrl, &testCase.httpClient) + provider := NewSavedObjectsProvider(testCase.baseUrl, &testCase.httpClient, false) if provider == nil { t.Fail() } @@ -91,7 +91,7 @@ func TestGetObject(t *testing.T) { srv := httptest.NewServer(handler) defer srv.Close() - provider := NewSavedObjectsProvider(srv.URL, http.DefaultClient) + provider := NewSavedObjectsProvider(srv.URL, http.DefaultClient, false) _, diag := provider.GetObject(context.TODO(), tC.obj) if tC.wantErr && diag != nil { return @@ -129,7 +129,7 @@ func TestSaveObject(t *testing.T) { srv := httptest.NewServer(handler) defer srv.Close() - provider := NewSavedObjectsProvider(srv.URL, http.DefaultClient) + provider := NewSavedObjectsProvider(srv.URL, http.DefaultClient, false) diag := provider.SaveObject(context.TODO(), tC.obj) if tC.wantErr && diag != nil { return @@ -183,7 +183,7 @@ func TestDeleteObject(t *testing.T) { srv := httptest.NewServer(handler) defer srv.Close() - provider := NewSavedObjectsProvider(srv.URL, http.DefaultClient) + provider := NewSavedObjectsProvider(srv.URL, http.DefaultClient, false) diag := provider.DeleteObject(context.TODO(), tC.obj) if tC.wantErr && diag != nil { return