Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testConstantBackoff (1.19 sec)

  1. src/test/java/jcifs/smb/SmbOperationExceptionTest.java

            assertEquals(5000, delay4); // Capped at max
            assertEquals(5000, delay10); // Still capped
        }
    
        @Test
        @DisplayName("Should handle non-exponential backoff")
        void testConstantBackoff() {
            // Given
            SmbOperationException.RetryPolicy policy = new SmbOperationException.RetryPolicy(5, 2000, 10000, 1.0, false);
    
            // When
            long delay1 = policy.getDelayMs(1);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.1K bytes
    - Viewed (0)
Back to top