Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 24 for testTimeouts (0.17 sec)

  1. pkg/controller/nodeipam/ipam/timeout_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package ipam
    
    import (
    	"errors"
    	"testing"
    	"time"
    )
    
    func TestTimeout(t *testing.T) {
    	time10s := 10 * time.Second
    	time5s := 5 * time.Second
    	timeout := &Timeout{
    		Resync:       time10s,
    		MaxBackoff:   time5s,
    		InitialRetry: time.Second,
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 04 20:48:08 UTC 2018
    - 1.4K bytes
    - Viewed (0)
  2. pkg/volume/util/nestedpendingoperations/nestedpendingoperations_test.go

    	volumetypes "k8s.io/kubernetes/pkg/volume/util/types"
    )
    
    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: Fri Aug 26 01:29:17 UTC 2022
    - 36.1K bytes
    - Viewed (0)
  3. src/context/x_test.go

    			}
    		}
    	}
    	if !testTimeout {
    		select {
    		case <-ctx.Done():
    			errorf("ctx should not be canceled yet")
    		default:
    		}
    	}
    	if s, prefix := fmt.Sprint(ctx), "context.Background."; !strings.HasPrefix(s, prefix) {
    		t.Errorf("ctx.String() = %q want prefix %q", s, prefix)
    	}
    	t.Log(ctx)
    	checkValues("before cancel")
    	if testTimeout {
    		d := quiescent(t)
    		timer := time.NewTimer(d)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/AbstractIdleServiceTest.java

        assertEquals("TestService [RUNNING]", service.toString());
        service.stopAsync().awaitTerminated();
        assertEquals("TestService [TERMINATED]", service.toString());
      }
    
      public void testTimeout() throws Exception {
        // Create a service whose executor will never run its commands
        Service service =
            new TestService() {
              @Override
              protected Executor executor() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/AbstractIdleServiceTest.java

        assertEquals("TestService [RUNNING]", service.toString());
        service.stopAsync().awaitTerminated();
        assertEquals("TestService [TERMINATED]", service.toString());
      }
    
      public void testTimeout() throws Exception {
        // Create a service whose executor will never run its commands
        Service service =
            new TestService() {
              @Override
              protected Executor executor() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  6. guava-gwt/pom.xml

                  <sourceLevel>1.8</sourceLevel>
                  <!-- Keep these timeouts very large because, if we hit the timeout, the tests silently pass :( -->
                  <testTimeOut>86400 <!-- seconds --></testTimeOut>
                  <testMethodTimeout>1440 <!-- minutes --></testMethodTimeout>
                  <!-- Presumably we want watchFileChanges=false here, since we want it for compile: -->
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Apr 11 15:00:55 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/AbstractExecutionThreadServiceTest.java

        WaitOnRunService service = new WaitOnRunService();
        service.startAsync().awaitRunning();
        enterRun.await();
        service.stopAsync().awaitTerminated();
      }
    
      public void testTimeout() {
        // Create a service whose executor will never run its commands
        Service service =
            new AbstractExecutionThreadService() {
              @Override
              protected void run() throws Exception {}
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/AbstractExecutionThreadServiceTest.java

        WaitOnRunService service = new WaitOnRunService();
        service.startAsync().awaitRunning();
        enterRun.await();
        service.stopAsync().awaitTerminated();
      }
    
      public void testTimeout() {
        // Create a service whose executor will never run its commands
        Service service =
            new AbstractExecutionThreadService() {
              @Override
              protected void run() throws Exception {}
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  9. src/cmd/go/internal/test/test.go

    		// better to hard-code a scale factor than to hard-code a constant delay.
    		if wd := testTimeout / 10; wd < 5*time.Second {
    			testWaitDelay = 5 * time.Second
    		} else {
    			testWaitDelay = wd
    		}
    
    		// We expect the test binary to terminate itself (and dump stacks) after
    		// exactly testTimeout. We give it up to one WaitDelay or one minute,
    		// whichever is longer, to finish dumping stacks before we send it an
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/AbstractScheduledServiceTest.java

        service.runSecondBarrier.await();
        service.awaitTerminated();
        // Only called once overall.
        assertEquals(1, service.numberOfTimesSchedulerCalled.get());
      }
    
      public void testTimeout() {
        // Create a service whose executor will never run its commands
        Service service =
            new AbstractScheduledService() {
              @Override
              protected Scheduler scheduler() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 22.5K bytes
    - Viewed (0)
Back to top