mirror of
				https://github.com/psycopg/psycopg2.git
				synced 2025-11-04 01:37:31 +03:00 
			
		
		
		
	Again, increase timeout on concurrent_exec tests
Truly increase the sleep timeout to 4 seconds and the check to 7. Previous commit message indicated that, but reality was different.
This commit is contained in:
		
							parent
							
								
									7c9d8192a3
								
							
						
					
					
						commit
						9dc6811135
					
				| 
						 | 
					@ -119,7 +119,7 @@ class ConnectionTests(unittest.TestCase):
 | 
				
			||||||
        def slave():
 | 
					        def slave():
 | 
				
			||||||
            cnn = psycopg2.connect(dsn)
 | 
					            cnn = psycopg2.connect(dsn)
 | 
				
			||||||
            cur = cnn.cursor()
 | 
					            cur = cnn.cursor()
 | 
				
			||||||
            cur.execute("select pg_sleep(3)")
 | 
					            cur.execute("select pg_sleep(4)")
 | 
				
			||||||
            cur.close()
 | 
					            cur.close()
 | 
				
			||||||
            cnn.close()
 | 
					            cnn.close()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -130,7 +130,7 @@ class ConnectionTests(unittest.TestCase):
 | 
				
			||||||
        t2.start()
 | 
					        t2.start()
 | 
				
			||||||
        t1.join()
 | 
					        t1.join()
 | 
				
			||||||
        t2.join()
 | 
					        t2.join()
 | 
				
			||||||
        self.assert_(time.time() - t0 < 5,
 | 
					        self.assert_(time.time() - t0 < 7,
 | 
				
			||||||
            "something broken in concurrency")
 | 
					            "something broken in concurrency")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def test_encoding_name(self):
 | 
					    def test_encoding_name(self):
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user