mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	test_runner: Fix incorrect type for enforce_timely_test_completion.
Our TestResult objects are always actually TextTestResults.
This commit is contained in:
		@@ -96,7 +96,7 @@ def report_slow_tests() -> None:
 | 
				
			|||||||
            print('      This may no longer be true: %s' % (slowness_reason,))
 | 
					            print('      This may no longer be true: %s' % (slowness_reason,))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def enforce_timely_test_completion(test_method: Any, test_name: str,
 | 
					def enforce_timely_test_completion(test_method: Any, test_name: str,
 | 
				
			||||||
                                   delay: float, result: TestResult) -> None:
 | 
					                                   delay: float, result: "TextTestResult") -> None:
 | 
				
			||||||
    if hasattr(test_method, 'slowness_reason'):
 | 
					    if hasattr(test_method, 'slowness_reason'):
 | 
				
			||||||
        max_delay = 2.0  # seconds
 | 
					        max_delay = 2.0  # seconds
 | 
				
			||||||
    else:
 | 
					    else:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user