Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 126 for success1 (0.07 sec)

  1. 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)
  2. 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 circuit
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/util/SimpleCircuitBreaker.java

            if (current == State.HALF_OPEN) {
                int successes = halfOpenSuccesses.incrementAndGet();
                if (successes >= successThreshold) {
                    if (state.compareAndSet(State.HALF_OPEN, State.CLOSED)) {
                        stateChangeTime.set(System.currentTimeMillis());
                        log.info("Circuit breaker {} closed after {} successful attempts", name, successes);
                    }
                }
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  4. 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)
  5. src/test/java/jcifs/dcerpc/msrpc/SamrAliasHandleTest.java

            int rid = 100;
    
            // Mock the behavior of sendrecv for MsrpcSamrOpenAlias
            doAnswer(invocation -> {
                MsrpcSamrOpenAlias rpc = invocation.getArgument(0);
                rpc.retval = 0; // Simulate success
                return null;
            }).when(mockDcerpcHandle).sendrecv(any(MsrpcSamrOpenAlias.class));
    
            // Act
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/netbios/NbtExceptionTest.java

    import org.junit.jupiter.params.provider.CsvSource;
    
    @DisplayName("NbtException Tests")
    class NbtExceptionTest {
    
        @Test
        @DisplayName("getErrorString success returns SUCCESS")
        void testSuccess() {
            assertEquals("SUCCESS", NbtException.getErrorString(NbtException.SUCCESS, 0));
        }
    
        @Test
        @DisplayName("getErrorString for name service error with known code")
        void testNameServiceKnown() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  7. 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)
  8. src/main/java/jcifs/netbios/NbtException.java

     */
    public class NbtException extends CIFSException {
    
        /**
         *
         */
        private static final long serialVersionUID = 492638554095148960L;
        // error classes
        /** Success status code */
        public static final int SUCCESS = 0;
        /** Name service error class */
        public static final int ERR_NAM_SRVC = 0x01;
        /** Session service error class */
        public static final int ERR_SSN_SRVC = 0x02;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  9. cmd/xl-storage_test.go

    	if err = xlStorage.MakeVol(t.Context(), "success-vol"); err != nil {
    		t.Fatalf("Unable to create volume, %s", err)
    	}
    	if err = xlStorage.AppendFile(t.Context(), "success-vol", "abc/def/ghi/success-file", []byte("Hello, world")); err != nil {
    		t.Fatalf("Unable to create file, %s", err)
    	}
    	if err = xlStorage.AppendFile(t.Context(), "success-vol", "abc/xyz/ghi/success-file", []byte("Hello, world")); err != nil {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 66K bytes
    - Viewed (0)
  10. .github/workflows/smokeshow.yml

    on:
      workflow_run:
        workflows: [Test]
        types: [completed]
    
    permissions:
      statuses: write
    
    env:
      UV_SYSTEM_PYTHON: 1
    
    jobs:
      smokeshow:
        if: ${{ github.event.workflow_run.conclusion == 'success' }}
        runs-on: ubuntu-latest
    
        steps:
          - name: Dump GitHub context
            env:
              GITHUB_CONTEXT: ${{ toJson(github) }}
            run: echo "$GITHUB_CONTEXT"
          - uses: actions/checkout@v5
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Fri Aug 15 21:44:06 UTC 2025
    - 1.8K bytes
    - Viewed (0)
Back to top