Skip to content

Commit 186e712

Browse files
committed
fix tests
1 parent c3e6602 commit 186e712

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

internal/cmd/object-storage/compliance-lock/describe/describe_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ func TestBuildRequest(t *testing.T) {
120120
request := buildRequest(testCtx, tt.model, testClient)
121121

122122
diff := cmp.Diff(request, tt.expectedRequest,
123-
cmp.AllowUnexported(tt.expectedRequest),
123+
cmp.AllowUnexported(tt.expectedRequest, objectstorage.DefaultAPIService{}),
124124
cmpopts.EquateComparable(testCtx),
125125
)
126126
if diff != "" {

internal/cmd/object-storage/compliance-lock/lock/lock_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ func TestBuildRequest(t *testing.T) {
120120
request := buildRequest(testCtx, tt.model, testClient)
121121

122122
diff := cmp.Diff(request, tt.expectedRequest,
123-
cmp.AllowUnexported(tt.expectedRequest),
123+
cmp.AllowUnexported(tt.expectedRequest, objectstorage.DefaultAPIService{}),
124124
cmpopts.EquateComparable(testCtx),
125125
)
126126
if diff != "" {

internal/cmd/object-storage/compliance-lock/unlock/unlock_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ func TestBuildRequest(t *testing.T) {
117117
request := buildRequest(testCtx, tt.model, testClient)
118118

119119
diff := cmp.Diff(request, tt.expectedRequest,
120-
cmp.AllowUnexported(tt.expectedRequest),
120+
cmp.AllowUnexported(tt.expectedRequest, objectstorage.DefaultAPIService{}),
121121
cmpopts.EquateComparable(testCtx),
122122
)
123123
if diff != "" {

0 commit comments

Comments
 (0)