mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-23 09:21:41 +00:00
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:
parent
89a6f27cf8
commit
e0b666c5d2
@ -64,9 +64,9 @@ func (r *ResourceCheck) Assert(t *testing.T) {
|
|||||||
// from the previous test, which are pretty hard to
|
// from the previous test, which are pretty hard to
|
||||||
// eliminate.
|
// eliminate.
|
||||||
if want < got {
|
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…
x
Reference in New Issue
Block a user