Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(317)

Unified Diff: go/testutils/testutils.go

Issue 2226583003: Add build scheduler DB interface, dumb in-memory impl, cache (Closed) Base URL: https://skia.googlesource.com/buildbot@master
Patch Set: Address more comments Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « go/buildbucket/buildbucket.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: go/testutils/testutils.go
diff --git a/go/testutils/testutils.go b/go/testutils/testutils.go
index 23fbf26669576a4c20f26cd42e4ee96a5636cace..d6485f4bf63ae9a2095499adde3e1a0dfca623e7 100644
--- a/go/testutils/testutils.go
+++ b/go/testutils/testutils.go
@@ -26,7 +26,7 @@ func SkipIfShort(t *testing.T) {
// AssertDeepEqual fails the test if the two objects do not pass reflect.DeepEqual.
func AssertDeepEqual(t *testing.T, a, b interface{}) {
if !reflect.DeepEqual(a, b) {
- t.Fatalf("Objects to not match: \na:\n%s\n\nb:\n%s\n", spew.Sprint(a), spew.Sprint(b))
+ assert.FailNow(t, fmt.Sprintf("Objects do not match: \na:\n%s\n\nb:\n%s\n", spew.Sprint(a), spew.Sprint(b)))
}
}
« no previous file with comments | « go/buildbucket/buildbucket.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698