Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for testTimeouts (0.22 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/grpc_service_unix_test.go

    	data := []byte("test data")
    	_, err = service.Encrypt(data)
    	if err != nil {
    		t.Fatalf("failed when execute encrypt, error: %v", err)
    	}
    }
    
    // TestTimeout tests behaviour of the kube-apiserver based on the supplied timeout and delayed start of kms-plugin.
    func TestTimeouts(t *testing.T) {
    	t.Parallel()
    	var testCases = []struct {
    		desc               string
    		callTimeout        time.Duration
    		pluginDelay        time.Duration
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 29 05:36:41 UTC 2023
    - 10K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/kmsv2/grpc_service_unix_test.go

    	data := []byte("test data")
    	uid := string(uuid.NewUUID())
    	_, err = service.Encrypt(ctx, uid, data)
    	if err != nil {
    		t.Fatalf("failed when execute encrypt, error: %v", err)
    	}
    }
    
    func TestTimeouts(t *testing.T) {
    	t.Parallel()
    	var testCases = []struct {
    		desc               string
    		callTimeout        time.Duration
    		pluginDelay        time.Duration
    		kubeAPIServerDelay time.Duration
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 21 19:25:52 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/ServiceManagerTest.java

        String toString = manager.toString();
        assertThat(toString).contains("NoOpService");
        assertThat(toString).contains("FailStartService");
      }
    
      public void testTimeouts() throws Exception {
        Service a = new NoOpDelayedService(50);
        ServiceManager manager = new ServiceManager(asList(a));
        manager.startAsync();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 02 17:20:27 UTC 2023
    - 23.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/ServiceManagerTest.java

        String toString = manager.toString();
        assertThat(toString).contains("NoOpService");
        assertThat(toString).contains("FailStartService");
      }
    
      public void testTimeouts() throws Exception {
        Service a = new NoOpDelayedService(50);
        ServiceManager manager = new ServiceManager(asList(a));
        manager.startAsync();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 02 17:20:27 UTC 2023
    - 23.2K bytes
    - Viewed (0)
  5. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGTestFrameworkIntegrationTest.groovy

            testResult.testClass('TestNG18566')
                .assertTestCount(1, 1, 0)
                .testFailed("testTimeout",  containsNormalizedString("Method TestNG18566.testTimeout() didn't finish within the time-out 10"))
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 5K bytes
    - Viewed (0)
  6. pkg/util/goroutinemap/goroutinemap_test.go

    import (
    	"fmt"
    	"testing"
    	"time"
    
    	"k8s.io/apimachinery/pkg/util/wait"
    )
    
    const (
    	// testTimeout is a timeout of goroutines to finish. This _should_ be just a
    	// "context switch" and it should take several ms, however, Clayton says "We
    	// have had flakes due to tests that assumed that 15s is long enough to sleep")
    	testTimeout time.Duration = 1 * time.Minute
    
    	// initialOperationWaitTimeShort is the initial amount of time the test will
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 11 14:09:48 UTC 2017
    - 14.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/endpoints/audit_test.go

    					t.Errorf("[%s] expected ResponseStatus.Code=%d, got %d", test.desc, test.code, status.Code)
    				}
    			}
    		})
    	}
    }
    
    // testTimeout returns the minimimum of the "ForeverTestTimeout" and the testing deadline (with
    // cleanup time).
    func testTimeout(t *testing.T) time.Duration {
    	defaultTimeout := wait.ForeverTestTimeout
    	const cleanupTime = 5 * time.Second
    	if deadline, ok := t.Deadline(); ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 14 23:04:34 UTC 2022
    - 12.1K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/test_timeout.txt

    # An explicit -timeout argument should be propagated to -test.timeout.
    go test -v -timeout 30m . --
    stdout '30m0s'
    
    -- a/timeout_test.go --
    package t
    import (
    	"flag"
    	"fmt"
    	"testing"
    )
    func TestTimeout(t *testing.T) {
    	fmt.Println(flag.Lookup("test.timeout").Value.String())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 04 20:38:05 UTC 2019
    - 448 bytes
    - Viewed (0)
  9. src/cmd/go/internal/test/testflag.go

    	// If the timeout wasn't set (and forwarded) explicitly, add the default
    	// timeout to the command line.
    	if testTimeout > 0 && !timeoutSet {
    		injectedFlags = append(injectedFlags, fmt.Sprintf("-test.timeout=%v", testTimeout))
    	}
    
    	// Similarly, the test binary defaults -test.outputdir to its own working
    	// directory, but 'go test' defaults it to the working directory of the 'go'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 19:25:24 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  10. src/internal/testenv/exec.go

    				}
    				gracePeriod *= time.Duration(scale)
    			}
    
    			// If time allows, increase the termination grace period to 5% of the
    			// test's remaining time.
    			testTimeout := time.Until(td)
    			if gp := testTimeout / 20; gp > gracePeriod {
    				gracePeriod = gp
    			}
    
    			// When we run commands that execute subprocesses, we want to reserve two
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 27 17:53:23 UTC 2023
    - 7.5K bytes
    - Viewed (0)
Back to top