mirror of
https://github.com/weaveworks/scope.git
synced 2026-05-05 00:39:04 +00:00
Move test & fs
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/weaveworks/common/test"
|
||||
"github.com/weaveworks/scope/test/reflect"
|
||||
)
|
||||
|
||||
@@ -23,6 +24,6 @@ func Poll(t *testing.T, d time.Duration, want interface{}, have func() interface
|
||||
h := have()
|
||||
if !reflect.DeepEqual(want, h) {
|
||||
_, file, line, _ := runtime.Caller(1)
|
||||
t.Fatalf("%s:%d: %s", file, line, Diff(want, h))
|
||||
t.Fatalf("%s:%d: %s", file, line, test.Diff(want, h))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user