diff --git a/pkg/controller/catalog/datacatalog/datacatalog_test.go b/pkg/controller/catalog/datacatalog/datacatalog_test.go index d25b94165a..ea3bef477b 100644 --- a/pkg/controller/catalog/datacatalog/datacatalog_test.go +++ b/pkg/controller/catalog/datacatalog/datacatalog_test.go @@ -388,7 +388,7 @@ func TestCatalog_Put(t *testing.T) { createDatasetCalled := false mockClient.On("CreateDataset", ctx, - mock.MatchedBy(func(o *datacatalog.CreateDatasetRequest) bool { + mock.MatchedBy(func(_ *datacatalog.CreateDatasetRequest) bool { createDatasetCalled = true return true }),