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>
This commit is contained in:
Avery Pennarun 2020-05-13 19:56:49 -04:00
parent 89a6f27cf8
commit e0b666c5d2

View File

@ -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)
}