mirror of
				https://github.com/microsoft/playwright.git
				synced 2025-06-26 21:40:17 +00:00 
			
		
		
		
	test: unflake happy-eyeballs tests (#31861)
This commit is contained in:
		
							parent
							
								
									d8d5289e86
								
							
						
					
					
						commit
						a966abfd31
					
				@ -35,8 +35,12 @@ const __testHookLookup = (hostname: string): LookupAddress[] => {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
let interceptedHostnameLookup: string | undefined;
 | 
					let interceptedHostnameLookup: string | undefined;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
it.beforeEach(() => {
 | 
					it.beforeEach(({ server }) => {
 | 
				
			||||||
  interceptedHostnameLookup = undefined;
 | 
					  interceptedHostnameLookup = undefined;
 | 
				
			||||||
 | 
					  // Force a new connection every time, so that we can intercept the hostname lookup.
 | 
				
			||||||
 | 
					  server.setExtraHeaders('/simple.json', {
 | 
				
			||||||
 | 
					    'Connection': 'close',
 | 
				
			||||||
 | 
					  });
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
it('get should work', async ({ context, server }) => {
 | 
					it('get should work', async ({ context, server }) => {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user