mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 09:02:25 -05:00 
			
		
		
		
	[bugfix] increases sleep time before check in throttle test, to give more leeway (#2482)
This commit is contained in:
		
					parent
					
						
							
								a15415b1a2
							
						
					
				
			
			
				commit
				
					
						31481fad35
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -129,7 +129,7 @@ func testThrottlingMiddleware(t *testing.T, cpuMulti int, retryAfter time.Durati | ||||||
| 		// Pass req through | 		// Pass req through | ||||||
| 		// engine handler. | 		// engine handler. | ||||||
| 		go e.ServeHTTP(rw, r) | 		go e.ServeHTTP(rw, r) | ||||||
| 		time.Sleep(time.Millisecond) | 		time.Sleep(5 * time.Millisecond) | ||||||
| 
 | 
 | ||||||
| 		// Get http result. | 		// Get http result. | ||||||
| 		res := rw.Result() | 		res := rw.Result() | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue