Skip to content

Commit

Permalink
Update pkg/api/mock/mock_api_implementation.go
Browse files Browse the repository at this point in the history
Co-authored-by: Jasmin <[email protected]>
  • Loading branch information
DrPsychick and nachtjasmin authored Nov 22, 2024
1 parent 8418242 commit 459fcf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/api/mock/mock_api_implementation.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ func (a *mockAPI) FakeExisting(o types.Object, tags ...string) string {

// SYSENG-1822: faking ResourceWithTag blindly overwrites object with same identifier.
if _, ok := o.(*corev1.ResourceWithTag); ok {
panic("Cannot fake ResourceWithTag, pass tags to the object instead.")
panic("mock: cannot fake ResourceWithTag, pass tags to the object or use the FakeExisting method")
}

identifier := makeObjectIdentifiable(o)
Expand Down

0 comments on commit 459fcf8

Please sign in to comment.