mirror of
				https://github.com/tailscale/tailscale.git
				synced 2025-10-31 03:49:52 +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:
		| @@ -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) | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Avery Pennarun
					Avery Pennarun