mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	test_presence: Fix test which moved days, not seconds.
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							39fb1a0f70
						
					
				
				
					commit
					0f132cef4d
				
			@@ -648,7 +648,8 @@ class UserPresenceAggregationTests(ZulipTestCase):
 | 
			
		||||
 | 
			
		||||
        with mock.patch(
 | 
			
		||||
            "zerver.views.presence.timezone_now",
 | 
			
		||||
            return_value=validate_time + datetime.timedelta(settings.OFFLINE_THRESHOLD_SECS + 1),
 | 
			
		||||
            return_value=validate_time
 | 
			
		||||
            + datetime.timedelta(seconds=settings.OFFLINE_THRESHOLD_SECS + 1),
 | 
			
		||||
        ):
 | 
			
		||||
            # After settings.OFFLINE_THRESHOLD_SECS + 1 this generated, recent presence data
 | 
			
		||||
            # will count as offline.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user