mirror of
https://github.com/weaveworks/scope.git
synced 2026-08-18 11:56:39 +00:00
Fail if want != have!
This commit is contained in:
+1
-1
@@ -19,7 +19,7 @@ func Poll(t *testing.T, d time.Duration, want interface{}, have func() interface
|
||||
time.Sleep(d / 10)
|
||||
}
|
||||
h := have()
|
||||
if reflect.DeepEqual(want, h) {
|
||||
if !reflect.DeepEqual(want, h) {
|
||||
t.Fatal(Diff(want, h))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user