mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-10-31 10:37:24 -04:00 
			
		
		
		
	proxy: Fix race in test
This commit is contained in:
		
							parent
							
								
									286d8d1e89
								
							
						
					
					
						commit
						9720da5bc8
					
				| @ -278,8 +278,8 @@ func TestWebSocketReverseProxyServeHTTPHandler(t *testing.T) { | |||||||
| 	if !bytes.Equal(actual, expected) { | 	if !bytes.Equal(actual, expected) { | ||||||
| 		t.Errorf("Expected backend to accept response:\n'%s'\nActually got:\n'%s'", expected, actual) | 		t.Errorf("Expected backend to accept response:\n'%s'\nActually got:\n'%s'", expected, actual) | ||||||
| 	} | 	} | ||||||
| 	if atomic.LoadInt32(&connCount) != 1 { | 	if got, want := atomic.LoadInt32(&connCount), int32(1); got != want { | ||||||
| 		t.Errorf("Expected 1 websocket connection, got %d", connCount) | 		t.Errorf("Expected %d websocket connection, got %d", want, got) | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user