tstest.ResourceCheck: clarify success message.

Inclusion of the word "assert" made it seem like a failure, even though
it was supposed to be identifying the name of the function (Assert()).

Signed-off-by: Avery Pennarun <apenwarr@tailscale.com>
reviewable/pr386/r1
Avery Pennarun 5 years ago
parent 89a6f27cf8
commit e0b666c5d2

@ -64,9 +64,9 @@ func (r *ResourceCheck) Assert(t *testing.T) {
// from the previous test, which are pretty hard to
// eliminate.
if want < got {
t.Fatalf("goroutine count: expected %d, got %d\n", want, got)
t.Fatalf("ResourceCheck: goroutine count: expected %d, got %d\n", want, got)
}
}
}
t.Logf("Assert: goroutines before=%d after=%d - ok\n", got, want)
t.Logf("ResourceCheck ok: goroutines before=%d after=%d\n", got, want)
}

Loading…
Cancel
Save