mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-31 12:03:46 +00:00 
			
		
		
		
	tests: Add an explicit order_by to prevent flakes.
Without an order_by, this can fail spuriously.
This commit is contained in:
		
				
					committed by
					
						 Steve Howell
						Steve Howell
					
				
			
			
				
	
			
			
			
						parent
						
							b38353f3ff
						
					
				
				
					commit
					0078f16f06
				
			| @@ -63,7 +63,7 @@ class TransferUploadsToS3Test(ZulipTestCase): | ||||
|         with self.assertLogs(level="INFO"): | ||||
|             transfer_message_files_to_s3(1) | ||||
|  | ||||
|         attachments = Attachment.objects.all() | ||||
|         attachments = Attachment.objects.all().order_by("id") | ||||
|  | ||||
|         self.assertEqual(len(list(bucket.objects.all())), 2) | ||||
|         self.assertEqual(bucket.Object(attachments[0].path_id).get()['Body'].read(), b'zulip1!') | ||||
|   | ||||
		Reference in New Issue
	
	Block a user