mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-01-03 11:45:45 +00:00
Clean this test up a trivial amount using require.Implementsf().
Signed-off-by: Matt Moyer <moyerm@vmware.com>
This commit is contained in:
@@ -20,10 +20,8 @@ func TestCacheMutationDetectorEnabled(t *testing.T) {
|
||||
|
||||
c := cache.NewCacheMutationDetector("test pinniped")
|
||||
|
||||
type isRealCacheMutationDetector interface {
|
||||
type realCacheMutationDetector interface {
|
||||
CompareObjects() // this is brittle, but this function name has never changed...
|
||||
}
|
||||
|
||||
_, ok := c.(isRealCacheMutationDetector)
|
||||
require.Truef(t, ok, "%T is not a real cache mutation detector", c)
|
||||
require.Implementsf(t, (*realCacheMutationDetector)(nil), c, "%T is not a real cache mutation detector", c)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user