Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 177 for Time (0.06 sec)

  1. pkg/controller/nodelifecycle/node_lifecycle_controller_test.go

    								Message:            "Kubelet never posted node status.",
    								LastHeartbeatTime:  metav1.Date(2012, 1, 1, 0, 0, 0, 0, time.UTC), // should default to node creation time if condition was never updated
    								LastTransitionTime: metav1.Time{Time: metav1.Date(2015, 1, 1, 12, 0, 0, 0, time.UTC).Add(time.Hour)},
    							},
    							{
    								Type:               v1.NodeDiskPressure,
    								Status:             v1.ConditionUnknown,
    Registered: 2024-06-15 01:39
    - Last Modified: 2024-02-26 03:26
    - 119K bytes
    - Viewed (0)
  2. pkg/printers/internalversion/printers_test.go

    		{"an hour ago", translateTimestampSince(metav1.Time{Time: time.Now().Add(-6e12)}), "100m"},
    		{"2 days ago", translateTimestampSince(metav1.Time{Time: time.Now().UTC().AddDate(0, 0, -2)}), "2d"},
    		{"months ago", translateTimestampSince(metav1.Time{Time: time.Now().UTC().AddDate(0, 0, -90)}), "90d"},
    Registered: 2024-06-15 01:39
    - Last Modified: 2024-06-11 14:04
    - 218.6K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/oidc/oidc_test.go

    			return jws.Verify(key)
    		}
    	}
    
    	return nil, fmt.Errorf("no keys matches jwk keyid")
    }
    
    var (
    	expired, _ = time.Parse(time.RFC3339Nano, "2009-11-10T22:00:00Z")
    	now, _     = time.Parse(time.RFC3339Nano, "2009-11-10T23:00:00Z")
    	valid, _   = time.Parse(time.RFC3339Nano, "2009-11-11T00:00:00Z")
    )
    
    type claimsTest struct {
    	name                string
    	options             Options
    Registered: 2024-06-15 01:39
    - Last Modified: 2024-04-24 18:25
    - 97.7K bytes
    - Viewed (0)
  4. pkg/controller/podautoscaler/horizontal_test.go

    				{6, time.Now().Add(-time.Second * time.Duration(59)), false},
    				{7, time.Now().Add(-time.Second * time.Duration(61)), false}, // outdated event, should be marked as outdated
    				{9, time.Now().Add(-time.Second * time.Duration(61)), false}, // outdated event, should be replaced
    			},
    			newScaleEvents: []timestampedScaleEvent{
    				{8, time.Now(), false},
    				{6, time.Now(), false},
    				{7, time.Now(), true},
    Registered: 2024-06-15 01:39
    - Last Modified: 2024-04-25 14:24
    - 199.3K bytes
    - Viewed (0)
  5. src/crypto/x509/x509_test.go

    				RevokedCertificates: []pkix.RevokedCertificate{
    					{
    						SerialNumber:   big.NewInt(2),
    						RevocationTime: time.Time{}.Add(time.Hour),
    					},
    				},
    				Number:     big.NewInt(5),
    				ThisUpdate: time.Time{}.Add(time.Hour * 24),
    				NextUpdate: time.Time{}.Add(time.Hour * 48),
    			},
    			expectedError: "x509: requested SignatureAlgorithm does not match private key type",
    		},
    		{
    Registered: 2024-06-12 16:32
    - Last Modified: 2024-05-22 21:00
    - 163.4K bytes
    - Viewed (0)
  6. pkg/kubelet/eviction/eviction_manager_test.go

    	}
    
    	// verify no pod was yet killed because there has not yet been enough time passed.
    	if podKiller.pod != nil {
    		t.Errorf("Manager should not have killed a pod yet, but killed: %v", podKiller.pod.Name)
    	}
    
    	// step forward in time pass the grace period
    	fakeClock.Step(3 * time.Minute)
    	summaryProvider.result = summaryStatsMaker("1500Mi", podStats)
    Registered: 2024-06-15 01:39
    - Last Modified: 2024-05-15 23:14
    - 119.9K bytes
    - Viewed (0)
  7. src/database/sql/sql_test.go

    			10 * time.Millisecond,
    			// Add second offset because otherwise connections are expired via max lifetime in Close.
    			100 * time.Nanosecond,
    		},
    		{
    			time.Hour,
    			0,
    			time.Second,
    			0,
    			0,
    			10 * time.Millisecond,
    			0},
    	}
    	baseTime := time.Unix(0, 0)
    	defer func() {
    		nowFunc = time.Now
    	}()
    	for _, item := range list {
    		nowFunc = func() time.Time {
    Registered: 2024-06-12 16:32
    - Last Modified: 2024-05-23 18:42
    - 111.6K bytes
    - Viewed (0)
  8. pkg/kubelet/kubelet_node_status_test.go

    		"test unschedulable taint for TaintNodesByCondition")
    }
    
    func TestNodeStatusHasChanged(t *testing.T) {
    	fakeNow := metav1.Date(2015, 1, 1, 12, 0, 0, 0, time.UTC)
    	fakeFuture := metav1.Time{Time: fakeNow.Time.Add(time.Minute)}
    	readyCondition := v1.NodeCondition{
    		Type:               v1.NodeReady,
    		Status:             v1.ConditionTrue,
    		LastHeartbeatTime:  fakeNow,
    		LastTransitionTime: fakeNow,
    Registered: 2024-06-15 01:39
    - Last Modified: 2024-05-08 19:23
    - 115.8K bytes
    - Viewed (0)
  9. pkg/kubelet/eviction/helpers_test.go

    	observedTime := metav1.NewTime(now.Time.Add(-1 * time.Minute))
    	testCases := map[string]struct {
    		observedAt nodeConditionsObservedAt
    		period     time.Duration
    		now        time.Time
    		result     []v1.NodeConditionType
    	}{
    		"in-period": {
    			observedAt: nodeConditionsObservedAt{
    				v1.NodeMemoryPressure: observedTime.Time,
    			},
    			period: 2 * time.Minute,
    			now:    now.Time,
    Registered: 2024-06-15 01:39
    - Last Modified: 2024-05-15 23:14
    - 106.7K bytes
    - Viewed (0)
  10. src/net/http/serve_test.go

    }
    func testServerGracefulClose(t *testing.T, mode testMode) {
    	runTimeSensitiveTest(t, []time.Duration{
    		1 * time.Millisecond,
    		5 * time.Millisecond,
    		10 * time.Millisecond,
    		50 * time.Millisecond,
    		100 * time.Millisecond,
    		500 * time.Millisecond,
    		time.Second,
    		5 * time.Second,
    	}, func(t *testing.T, timeout time.Duration) error {
    		SetRSTAvoidanceDelay(t, timeout)
    Registered: 2024-06-12 16:32
    - Last Modified: 2024-06-07 17:57
    - 202K bytes
    - Viewed (0)
Back to top