- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 319 for success (0.03 sec)
-
src/test/java/jcifs/util/SimpleCircuitBreakerTest.java
// Next call should transition to HALF_OPEN String result = circuitBreaker.call(() -> "success"); assertEquals("success", result); assertEquals(SimpleCircuitBreaker.State.HALF_OPEN, circuitBreaker.getState()); } @Test @DisplayName("Test circuit closes after success threshold in HALF_OPEN") void testCircuitClosesAfterSuccessThreshold() throws Exception {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 10.6K bytes - Viewed (0) -
src/test/java/jcifs/util/SmbCircuitBreakerTest.java
// First success should transition to HALF_OPEN String result = circuitBreaker.executeWithCircuitBreaker(() -> "success 0"); assertEquals("success 0", result, "Should execute in HALF_OPEN"); assertEquals(State.HALF_OPEN, circuitBreaker.getState(), "Should be in HALF_OPEN after first success"); // Need successThreshold (2) consecutive successes to close the circuitRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 23.2K bytes - Viewed (0) -
cmd/endpoint-ellipses_test.go
if err != nil && testCase.success { t.Fatalf("Test %d: unexpected error: %v", i+1, err) } _, _, err = createServerEndpoints(testCase.serverAddr, srvCtxt.Layout.pools, srvCtxt.Layout.legacy) if err != nil && testCase.success { t.Errorf("Test %d: Expected success but failed instead %s", i+1, err) } if err == nil && !testCase.success {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 15.1K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ConnectPlan.kt
override fun connectTcp(): ConnectResult { check(rawSocket == null) { "TCP already connected" } var success = false // Tell the call about the connecting call so async cancels work. user.addPlanToCancel(this) try { user.connectStart(route) connectSocket() success = true return ConnectResult(plan = this) } catch (e: IOException) {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 18.6K bytes - Viewed (2) -
src/main/java/jcifs/util/SmbCircuitBreaker.java
if (currentState == State.HALF_OPEN) { int successes = successCount.incrementAndGet(); log.debug("[{}] Success in HALF_OPEN state ({}/{})", name, successes, successThreshold); if (successes >= successThreshold) { log.info("[{}] Circuit breaker closing after {} successful attempts", name, successes); transitionTo(State.CLOSED); }Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 33.4K bytes - Viewed (0) -
cmd/postpolicyform_test.go
t.Run("", func(t *testing.T) { _, err := parsePostPolicyForm(strings.NewReader(testCase.policy)) if testCase.success && err != nil { t.Errorf("Expected success but failed with %s", err) } if !testCase.success && err == nil { t.Errorf("Expected failed but succeeded") } }) } } type formValues struct { http.Header } func newFormValues() formValues {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 12.3K bytes - Viewed (0) -
cmd/format-erasure_test.go
t.Fatal("Unexpected success") } formats[0] = nil quorumFormat, err = getFormatErasureInQuorum(formats) if err != nil { t.Fatal(err) } badFormat := *quorumFormat badFormat.Erasure.Sets = nil if err = formatErasureV3Check(quorumFormat, &badFormat); err == nil { t.Fatal("Unexpected success") } badFormatUUID := *quorumFormat
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 12.7K bytes - Viewed (0) -
src/archive/tar/strconv_test.go
var p parser got := p.parseNumeric([]byte(v.in)) ok := (p.err == nil) if ok != v.ok { if v.ok { t.Errorf("parseNumeric(%q): got parsing failure, want success", v.in) } else { t.Errorf("parseNumeric(%q): got parsing success, want failure", v.in) } } if ok && got != v.want { t.Errorf("parseNumeric(%q): got %d, want %d", v.in, got, v.want) } } }
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Mon Sep 08 17:08:20 UTC 2025 - 15K bytes - Viewed (0) -
src/main/java/jcifs/audit/SecurityAuditLogger.java
context.put("authMethod", authMethod); context.put("success", success); String message = buildAuthMessage(success, maskedUsername, maskedAddress, authMethod); logEvent(type, severity, message, context); returnContextMap(context); } private String buildAuthMessage(boolean success, String maskedUsername, String maskedAddress, String authMethod) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 26.6K bytes - Viewed (0) -
cmd/kms-handlers_test.go
name: "create key as user with no resources specified want success", method: http.MethodPost, path: kmsKeyCreatePath, query: map[string]string{"key-id": "new-test-key"}, asRoot: false, policy: `{"Effect": "Allow", "Action": ["kms:CreateKey"] }`, wantStatusCode: http.StatusOK, }, { name: "create key as user set policy to allow want success", method: http.MethodPost,
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Wed Apr 09 14:28:39 UTC 2025 - 22.3K bytes - Viewed (0)