- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 220 for succeed (0.03 sec)
-
src/test/java/org/codelibs/fess/job/AggregateLogJobTest.java
throw new RuntimeException("Even call error"); } // Odd calls succeed } } }; ComponentUtil.register(mockSearchLogHelper, "searchLogHelper"); // First call (odd) should succeed String result1 = aggregateLogJob.execute(); assertEquals("", result1); // Second call (even) should fail
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 12.1K bytes - Viewed (0) -
cmd/erasure-object_test.go
} gr, err := obj.GetObjectNInfo(ctx, bucket, object, nil, nil, ObjectOptions{}) if err != nil { t.Fatalf("Expected GetObject to succeed, but failed with %v", err) } output := bytes.NewBuffer([]byte{}) _, err = io.Copy(output, gr) if err != nil { t.Fatalf("Expected GetObject reading data to succeed, but failed with %v", err) } gr.Close() if !bytes.Equal(output.Bytes(), smallData) { t.Fatalf("Corrupted data is found")
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 38.3K bytes - Viewed (0) -
cmd/net_test.go
host, port, err := extractHostPort(testCase.addr) if testCase.expectedErr == nil && err != nil { t.Fatalf("Test %d: should succeed but failed with err: %v", i+1, err) } if testCase.expectedErr != nil && err == nil { t.Fatalf("Test %d:, should fail but succeeded.", i+1) } if err == nil { if host != testCase.host { t.Fatalf("Test %d: expected: %v, found: %v", i+1, testCase.host, host) }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 9.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbTreeTest.java
} @Test void testTreeConnectAndDisconnect() throws Exception { SmbTree tree = new SmbTree(session, "testShare", "testService"); // Mock transport.connect() to succeed doNothing().when(transport).connect(); // Setup response for tree connect doAnswer(invocation -> { ServerMessageBlock request = invocation.getArgument(0);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 10.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/BufferCacheSecurityTest.java
executor.shutdown(); // Then - All operations should succeed assertTrue(exceptions.isEmpty(), "No exceptions should occur"); assertEquals(threadCount * opsPerThread, successCount.get(), "All operations should succeed"); } /** * Test that buffer cache handles allocation when cache is full. */ @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 9.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbSessionImplSecurityTest.java
if (!exceptions.isEmpty()) { fail("Concurrent operations caused exceptions: " + exceptions.get(0)); } assertEquals(threadCount * opsPerThread, successCount.get(), "All operations should succeed"); } /** * Test that session release with double-check pattern prevents race conditions. */ @Test public void testSessionReleaseDoubleCheckPattern() throws Exception {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11K bytes - Viewed (0) -
src/test/java/jcifs/util/AuthenticationRateLimiterTest.java
assertTrue(rateLimiter.checkAttempt("user1", "192.168.1.1"), "First attempt should be allowed"); // Record success rateLimiter.recordSuccess("user1", "192.168.1.1"); // Should still be allowed assertTrue(rateLimiter.checkAttempt("user1", "192.168.1.1"), "After success should be allowed"); } @Test public void testAccountLockout() throws Exception {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.8K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/InterruptibleTask.java
* might be cancelled before we set the runner thread. That would make it impossible to * interrupt, yet it will still run, since interruptTask will leave the runner value null, * allowing the CAS below to succeed. */ Thread currentThread = Thread.currentThread(); if (!compareAndSet(null, currentThread)) { return; // someone else has run or is running. } boolean run = !isDone();Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 10K bytes - Viewed (0) -
src/test/java/jcifs/util/SmbCircuitBreakerTest.java
// Second success should close the circuit (threshold is 2) result = circuitBreaker.executeWithCircuitBreaker(() -> "success 1"); assertEquals("success 1", result, "Should execute second success"); assertEquals(State.CLOSED, circuitBreaker.getState(), "Circuit should be CLOSED after success threshold"); // Test max attempts in half-open with failure scenario circuitBreaker.trip(); // Open again
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 23.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeConnectionTest.java
// Prepare a minimal locator SmbResourceLocatorImpl loc = new SmbResourceLocatorImpl(ctx, smbUrl("smb://srv/share/path")); // Setup a tree that will fail with transport error first, then succeed SmbTreeImpl tree = mock(SmbTreeImpl.class); when(tree.acquire(false)).thenReturn(tree); CommonServerMessageBlockRequest req = mock(CommonServerMessageBlockRequest.class);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 13K bytes - Viewed (0)