mirror of
				https://github.com/tailscale/tailscale.git
				synced 2025-10-31 03:49:52 +00:00 
			
		
		
		
	tstest: skip resource check when test has failed
Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
This commit is contained in:
		 Josh Bleecher Snyder
					Josh Bleecher Snyder
				
			
				
					committed by
					
						 Josh Bleecher Snyder
						Josh Bleecher Snyder
					
				
			
			
				
	
			
			
			 Josh Bleecher Snyder
						Josh Bleecher Snyder
					
				
			
						parent
						
							ce6aca13f0
						
					
				
				
					commit
					e1596d655a
				
			| @@ -40,6 +40,12 @@ func goroutineDump() (int, string) { | ||||
| } | ||||
|  | ||||
| func (r *ResourceCheck) Assert(t testing.TB) { | ||||
| 	if t.Failed() { | ||||
| 		// Something else went wrong. | ||||
| 		// Assume that that is responsible for the leak | ||||
| 		// and don't pile on a bunch of extra of output. | ||||
| 		return | ||||
| 	} | ||||
| 	t.Helper() | ||||
| 	want := r.startNumRoutines | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user