Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for test_execute_withTimeout (1.27 sec)

  1. src/test/java/org/codelibs/fess/job/GenerateThumbnailJobTest.java

            assertNotNull(thumbnailJob.sessionId);
            assertTrue(result.contains("Session Id: " + thumbnailJob.sessionId));
        }
    
        // Test execute with timeout
        public void test_execute_withTimeout() {
            thumbnailJob.numOfThreads(2);
            thumbnailJob.timeout = 120; // Set timeout
            thumbnailJob.processTimeout = true;
    
            testProcessHelper.exitValue = -1;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/job/PythonJobTest.java

            assertNotNull(result);
            // Result should contain session ID info
            assertTrue(result.contains("Python Process terminated."));
        }
    
        // Test execute with timeout
        public void test_execute_withTimeout() {
            pythonJob.filename("timeout.py");
            pythonJob.timeout = 60; // Set timeout
            pythonJob.processTimeout = true;
    
            testProcessHelper.exitValue = -1;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/job/SuggestJobTest.java

            String result = suggestJob.execute();
    
            assertNotNull(result);
            assertTrue(mockJobExecutor.hasShutdownListener());
        }
    
        // Test execute method with timeout
        public void test_execute_withTimeout() {
            createRequiredDirectories();
            suggestJob.timeout(10);
    
            mockProcessHelper.setExitValue(0);
            mockProcessHelper.setOutput("Success");
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 31.4K bytes
    - Viewed (0)
Back to top