Fix intermittently failing test gap_cache.two_dependencies. (#3849)
This commit is contained in:
		
					parent
					
						
							
								858d074a30
							
						
					
				
			
			
				commit
				
					
						a4507a0bf4
					
				
			
		
					 1 changed files with 3 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -165,8 +165,7 @@ TEST (gap_cache, two_dependencies)
 | 
			
		|||
	node1.block_processor.add (send1);
 | 
			
		||||
	node1.block_processor.flush ();
 | 
			
		||||
	ASSERT_TIMELY (5s, node1.gap_cache.size () == 0);
 | 
			
		||||
	auto transaction (node1.store.tx_begin_read ());
 | 
			
		||||
	ASSERT_TRUE (node1.store.block.exists (transaction, send1->hash ()));
 | 
			
		||||
	ASSERT_TRUE (node1.store.block.exists (transaction, send2->hash ()));
 | 
			
		||||
	ASSERT_TRUE (node1.store.block.exists (transaction, open->hash ()));
 | 
			
		||||
	ASSERT_TIMELY (5s, node1.store.block.exists (node1.store.tx_begin_read (), send1->hash ()));
 | 
			
		||||
	ASSERT_TIMELY (5s, node1.store.block.exists (node1.store.tx_begin_read (), send2->hash ()));
 | 
			
		||||
	ASSERT_TIMELY (5s, node1.store.block.exists (node1.store.tx_begin_read (), open->hash ()));
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue