Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
karo-moia committed Jan 9, 2023
1 parent a7ab509 commit b561284
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/saved_objects/saved_objects_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b561284

Please sign in to comment.