Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for 100ms (2.25 sec)

  1. fess-crawler/src/test/java/org/codelibs/fess/crawler/interval/impl/DefaultIntervalControllerTest.java

            final long start = System.nanoTime();
            controller.delayAtNoUrlInQueue();
            final long elapsed = (System.nanoTime() - start) / 1000000;
    
            assertTrue("Expected at least 500ms delay", elapsed >= 450); // default is 500ms
        }
    
        /**
         * Test delayForWaitingNewUrl with default delay
         */
        public void test_delayForWaitingNewUrl_defaultDelay() {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 20 08:58:39 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/tests/persistent/HandleInfoTest.java

        }
    
        @Test
        public void testHandleInfoExpiration() {
            // Test durable handle expiration
            HandleInfo durableInfo = new HandleInfo("/test/file.txt", testGuid, testFileId, HandleType.DURABLE_V2, 100, // 100ms timeout
                    null);
    
            assertFalse(durableInfo.isExpired());
    
            // Wait for expiration
            try {
                Thread.sleep(150);
            } catch (InterruptedException e) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/tests/persistent/HandleReconnectorTest.java

        public void testReconnectExpiredHandle() throws Exception {
            // Create an expired handle
            HandleInfo expiredHandle = new HandleInfo("/test/file.txt", new HandleGuid(), new byte[16], HandleType.DURABLE_V2, 100, // 100ms timeout
                    null);
    
            // Wait for expiration
            Thread.sleep(150);
    
            CompletableFuture<HandleInfo> future = reconnector.reconnectHandle(expiredHandle, new IOException("Network error"));
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  4. CLAUDE.md

        runner.close();
        runner.clean();
    }
    ```
    
    ### Testing Best Practices
    
    - Minimize `Thread.sleep()` - use only when absolutely necessary
    - For timestamp tests: use minimal delays (50-100ms)
    - Clean only test-specific indices (not `_all` unless needed)
    - Use `runner.refresh()` after index operations
    - Test with realistic multilingual content
    
    ### Key Test Classes
    
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 24 03:40:05 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/tests/persistent/PersistentHandleManagerTest.java

            assertTrue(info.isReconnecting());
        }
    
        @Test
        public void testGetHandleForReconnectExpired() {
            manager.requestDurableHandle("/test/file.txt", HandleType.DURABLE_V2, 100, // 100ms timeout
                    null);
    
            // Wait for expiration
            try {
                Thread.sleep(150);
            } catch (InterruptedException e) {
                Thread.currentThread().interrupt();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/lease/DirectoryCacheEntryTest.java

            assertTrue(entry.hasChanges());
            assertTrue(entry.getChildren().isEmpty());
        }
    
        @Test
        public void testExpiration() {
            // Set a very short max age
            entry.setMaxAge(100); // 100ms
    
            assertFalse(entry.isExpired());
            assertFalse(entry.needsRefresh());
    
            // Wait for expiration
            try {
                Thread.sleep(150);
            } catch (InterruptedException e) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/persistent/DurableHandleV2Response.java

         */
        public long getTimeoutMs() {
            if (timeout100Ns == 0) {
                return 0; // Persistent handles
            }
            // Convert from 100-nanosecond intervals to milliseconds
            // 1 ms = 10,000 * 100ns intervals
            return timeout100Ns / 10000L;
        }
    
        /**
         * Get the flags
         * @return the flags
         */
        public int getFlags() {
            return flags;
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 3K bytes
    - Viewed (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/FaultTolerantClient.java

     *   <li>Exception tracking and aggregation</li>
     *   <li>Request lifecycle monitoring through listener</li>
     * </ul>
     *
     * <p>By default, it will:</p>
     * <ul>
     *   <li>Retry up to 5 times</li>
     *   <li>Wait 500ms between retries</li>
     * </ul>
     *
     */
    public class FaultTolerantClient implements CrawlerClient {
    
        /** Logger instance for this class */
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/persistent/DurableHandleV2Request.java

        public long getTimeoutFor100Ns() {
            if (timeoutMs == 0) {
                return 0L; // Persistent handles use 0
            }
            // Convert milliseconds to 100-nanosecond intervals
            // 1 ms = 10,000 * 100ns intervals
            long intervals = timeoutMs * 10000L;
            // MS-SMB2 timeout field is 4 bytes (uint32), so clamp to max value
            return Math.min(intervals, 0xFFFFFFFFL);
        }
    
        /**
         * Get the flags
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 5.2K bytes
    - Viewed (0)
Back to top