From e0b666c5d272ccf5faf9d5b273b57c85a276933a Mon Sep 17 00:00:00 2001 From: Avery Pennarun Date: Wed, 13 May 2020 19:56:49 -0400 Subject: [PATCH] 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 --- tstest/resource.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tstest/resource.go b/tstest/resource.go index 245877e9f..f42127747 100644 --- a/tstest/resource.go +++ b/tstest/resource.go @@ -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) }