Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 127 for SetTime (0.21 sec)

  1. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/apf_filter_test.go

    		RequestInfo: reqInfo,
    		User:        flowUser,
    	}
    
    	// Add 1 second to the fake clock during QueueNoteFn
    	newTime := startTime.Add(time.Second)
    	qnf := fq.QueueNoteFn(func(bool) { clk.FakePassiveClock.SetTime(newTime) })
    	ctx := request.WithLatencyTrackers(context.Background())
    	controller.Handle(ctx, rd, noteFn, workEstr, qnf, func() {})
    
    	latencyTracker, ok := request.LatencyTrackersFrom(ctx)
    	if !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:40 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  2. pkg/controlplane/controller/legacytokentracking/controller_test.go

    				controller.configMapCache.Delete(&corev1.ConfigMap{
    					ObjectMeta: metav1.ObjectMeta{Namespace: metav1.NamespaceSystem, Name: ConfigMapName},
    				})
    				controller.clock.(*testingclock.FakeClock).SetTime(createAt)
    				if err := controller.syncConfigMap(); err != nil {
    					t.Errorf("Failed to sync ConfigMap, err: %v", err)
    				}
    			}
    
    			if diff := cmp.Diff(test.expectedActions, client.Actions()); diff != "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 19 17:33:34 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  3. src/cmd/distpack/pack.go

    	}
    	version, versionTime := readVERSION(goroot)
    
    	// Start with files from GOROOT, filtering out non-distribution files.
    	base, err := NewArchive(goroot)
    	if err != nil {
    		log.Fatal(err)
    	}
    	base.SetTime(versionTime)
    	base.SetMode(mode)
    	base.Remove(
    		".git/**",
    		".gitattributes",
    		".github/**",
    		".gitignore",
    		"VERSION.cache",
    		"misc/cgo/*/_obj/**",
    		"**/.DS_Store",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  4. subprojects/core/src/main/java/org/gradle/internal/classpath/InPlaceClasspathBuilder.java

                    return null;
                }
            }
    
            private ZipArchiveEntry newZipEntryWithFixedTime(String name) {
                ZipArchiveEntry entry = new ZipArchiveEntry(name);
                entry.setTime(ZipCopyAction.CONSTANT_TIME_FOR_ZIP_ENTRIES);
                return entry;
            }
    
            private void configureCompression(ZipArchiveEntry entry, CompressionMethod compressionMethod, byte[] contents) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 09 14:05:09 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/convert/TimeConversionUtil.java

                final Date date = toDate(str, format);
                if (date != null) {
                    return new Time(date.getTime());
                }
            }
            final Date date = toDate(str, locale);
            if (date != null) {
                return new Time(date.getTime());
            }
            final Time time = toSqlTimeJdbcEscape(str);
            if (time != null) {
                return time;
            }
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/convert/TimestampConversionUtil.java

                final Date date = toDate(str, format);
                if (date != null) {
                    return new Timestamp(date.getTime());
                }
            }
            final Date date = toDate(str, locale);
            if (date != null) {
                return new Timestamp(date.getTime());
            }
            final Timestamp timestamp = toSqlTimestampJdbcEscape(str);
            if (timestamp != null) {
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  7. pkg/kubelet/kubelet_node_status_test.go

    	// Should report kubelet not ready if the runtime check is out of date
    	clock.SetTime(time.Now().Add(-maxWaitForContainerRuntime))
    	kubelet.updateRuntimeUp()
    	checkNodeStatus(v1.ConditionFalse, "KubeletNotReady")
    
    	// Should report kubelet ready if the runtime check is updated
    	clock.SetTime(time.Now())
    	kubelet.updateRuntimeUp()
    	checkNodeStatus(v1.ConditionTrue, "KubeletReady")
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 08 19:23:19 UTC 2024
    - 115.8K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/convert/DateConversionUtil.java

                final Date date = toDate(str, format);
                if (date != null) {
                    return new java.sql.Date(date.getTime());
                }
            }
            final Date date = toDate(str, locale);
            if (date != null) {
                return new java.sql.Date(date.getTime());
            }
            final java.sql.Date sqlDate = toSqlDateJdbcEscape(str);
            if (sqlDate != null) {
                return sqlDate;
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  9. pkg/kubelet/pod_workers_test.go

    func (w *timeIncrementingWorkers) UpdatePod(options UpdatePodOptions, afterFns ...func()) {
    	func() {
    		w.lock.Lock()
    		defer w.lock.Unlock()
    		w.w.UpdatePod(options)
    		w.w.clock.(*clocktesting.FakePassiveClock).SetTime(w.w.clock.Now().Add(time.Second))
    		for _, fn := range afterFns {
    			fn()
    		}
    	}()
    	w.drainUnpausedWorkers()
    }
    
    // SyncKnownPods increments the clock after SyncKnownPods is called, but before the workers
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 75.6K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset/queueset_test.go

    		return
    	}
    	t.Errorf("Failed to find request from user %s", username)
    }
    
    func (uss *uniformScenarioState) evalTo(lim time.Time, last, expectFair bool, margin float64) {
    	uss.clk.Run(&lim)
    	uss.clk.SetTime(lim)
    	if uss.doSplit && !last {
    		uss.t.Logf("%s: End of first half of scenario %q", uss.clk.Now().Format(nsTimeFmt), uss.name)
    	} else {
    		uss.t.Logf("%s: End of scenario %q", uss.clk.Now().Format(nsTimeFmt), uss.name)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 26 12:55:23 UTC 2023
    - 58.4K bytes
    - Viewed (0)
Back to top