Clean this test up a trivial amount using require.Implementsf()
.
Signed-off-by: Matt Moyer <moyerm@vmware.com>
This commit is contained in:
parent
dc8e7a2f39
commit
b60542f0d1
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user