diff --git a/internal/cmd/ske/cluster/create/create_test.go b/internal/cmd/ske/cluster/create/create_test.go index 10213b29..404fd2a3 100644 --- a/internal/cmd/ske/cluster/create/create_test.go +++ b/internal/cmd/ske/cluster/create/create_test.go @@ -292,7 +292,7 @@ func TestBuildRequest(t *testing.T) { diff := cmp.Diff(request, tt.expectedRequest, cmp.AllowUnexported(tt.expectedRequest), - cmpopts.IgnoreFields(ske.ApiCreateOrUpdateClusterRequest{}, "apiService", "ctx", "projectId"), + cmpopts.EquateComparable(testCtx), ) if diff != "" { t.Fatalf("Data does not match: %s", diff)