mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06:00 
			
		
		
		
	tests: fix management_consumer test (#66)
this test failed due to a strict polling delay, which caused the test to be interrupted by an async call, which stated "Incomplete File READ FAILED" see also https://github.com/NixOS/nixpkgs/pull/158118 Signed-off-by: florian on nixos (Florian Brandes) <florian.brandes@posteo.de>
This commit is contained in:
		@@ -239,7 +239,7 @@ class TestConsumer(DirectoriesMixin, ConsumerMixin, TransactionTestCase):
 | 
			
		||||
                f'_is_ignored("{file_path}") != {expected_ignored}')
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@override_settings(CONSUMER_POLLING=1, CONSUMER_POLLING_DELAY=1, CONSUMER_POLLING_RETRY_COUNT=20)
 | 
			
		||||
@override_settings(CONSUMER_POLLING=1, CONSUMER_POLLING_DELAY=3, CONSUMER_POLLING_RETRY_COUNT=20)
 | 
			
		||||
class TestConsumerPolling(TestConsumer):
 | 
			
		||||
    # just do all the tests with polling
 | 
			
		||||
    pass
 | 
			
		||||
@@ -251,7 +251,7 @@ class TestConsumerRecursive(TestConsumer):
 | 
			
		||||
    pass
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@override_settings(CONSUMER_RECURSIVE=True, CONSUMER_POLLING=1, CONSUMER_POLLING_DELAY=1, CONSUMER_POLLING_RETRY_COUNT=20)
 | 
			
		||||
@override_settings(CONSUMER_RECURSIVE=True, CONSUMER_POLLING=1, CONSUMER_POLLING_DELAY=3, CONSUMER_POLLING_RETRY_COUNT=20)
 | 
			
		||||
class TestConsumerRecursivePolling(TestConsumer):
 | 
			
		||||
    # just do all the tests with polling and recursive
 | 
			
		||||
    pass
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user