File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
tests/Cloudflare.NET.Tests/IntegrationTests Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -645,11 +645,15 @@ public async Task BulkDeleteAsync_CanDeleteMultipleKeys()
645645 result . SuccessfulKeyCount . Should ( ) . Be ( 3 ) ;
646646 result . UnsuccessfulKeys . Should ( ) . BeNullOrEmpty ( ) ;
647647
648- // Verify they are deleted
648+ // Verify they are deleted (retry for eventual consistency - no delays, just retries)
649+ const int maxRetries = 10 ;
649650 foreach ( var key in keys )
650651 {
651- var value = await _sut . GetValueAsync ( _namespaceId , key ) ;
652- value . Should ( ) . BeNull ( $ "{ key } should be deleted") ;
652+ string ? value = "not null" ;
653+ for ( var attempt = 1 ; attempt <= maxRetries && value is not null ; attempt ++ )
654+ value = await _sut . GetValueAsync ( _namespaceId , key ) ;
655+
656+ value . Should ( ) . BeNull ( $ "{ key } should be deleted after { maxRetries } retries") ;
653657 }
654658 }
655659
You can’t perform that action at this time.
0 commit comments