- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 26 for SetTime (0.14 sec)
-
platforms/core-runtime/time/src/test/groovy/org/gradle/internal/time/DefaultTimerTest.groovy
when: setTime(51243) then: timer.getElapsed() == "51.243 secs" } def testOnlySecondsEvenMs() { when: setTime(4000) then: timer.getElapsed() == "4.0 secs" } def testMinutesAndSeconds() { when: setTime(0, 32, 40, 322) then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 11 20:20:17 UTC 2024 - 2.2K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/registry/DaemonStopEvent.java
} if (o == null || getClass() != o.getClass()) { return false; } DaemonStopEvent stopEvent = (DaemonStopEvent) o; return timestamp.getTime() == stopEvent.timestamp.getTime() && (reason != null ? reason.equals(stopEvent.reason) : stopEvent.reason == null); } @Override public int hashCode() { int result = timestamp.hashCode();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 29 06:47:38 UTC 2024 - 4.1K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/AbstractModule.groovy
writeContents(bos, cl) ZipArchiveOutputStream zipStream = new ZipArchiveOutputStream(testFile) try { def entry = new ZipArchiveEntry(testFile.name) entry.setTime(lmd.getTime()) zipStream.putArchiveEntry(entry) zipStream << bos.toByteArray() zipStream.closeArchiveEntry() zipStream.finish() } finally {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 5K bytes - Viewed (0) -
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) -
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) -
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) -
pkg/kubelet/images/image_gc_manager_test.go
assert.Len(fakeRuntime.ImageList, 2) // Move clock by a lot, and the images should continue to not be garbage colleced // See https://stackoverflow.com/questions/25065055/what-is-the-maximum-time-time-in-go fakeClock.SetTime(time.Unix(1<<63-62135596801, 999999999)) images, err = manager.freeOldImages(ctx, images, fakeClock.Now(), oldStartTime) require.NoError(t, err) assert.Len(images, 1) assert.Len(fakeRuntime.ImageList, 2) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 22 15:38:20 UTC 2024 - 29.2K bytes - Viewed (0) -
pkg/scheduler/internal/queue/scheduling_queue_test.go
queue.AddUnschedulableIfNotPresent(logger, pInfo, 1) // Override clock to exceed the DefaultPodMaxInUnschedulablePodsDuration so that unschedulable pods // will be moved to activeQ c.SetTime(timestamp.Add(DefaultPodMaxInUnschedulablePodsDuration + 1)) queue.flushUnschedulablePodsLeftover(logger) }, wantAttempts: 2, wantInitialAttemptTs: timestamp, }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 13:26:09 UTC 2024 - 146.9K bytes - Viewed (0) -
testing/internal-performance-testing/src/main/groovy/org/gradle/performance/results/BaseCrossBuildResultsStore.java
performanceResults.setTestProject(experiment.getTestProject()); performanceResults.setStartTime(testExecutions.getTimestamp(2).getTime()); performanceResults.setEndTime(testExecutions.getTimestamp(3).getTime()); performanceResults.setVersionUnderTest(testExecutions.getString(4));
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 12.4K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/client/http/HcHttpClientTest.java
final ResponseData responseData = httpClient.doHead(url); Thread.sleep(100); assertNotNull(responseData.getLastModified()); assertTrue(responseData.getLastModified().getTime() < new Date().getTime()); } finally { server.stop(); } } public void test_doGet_accessTimeoutTarget() { HcHttpClient client = new HcHttpClient() { @Override
Registered: Wed Jun 12 15:17:51 UTC 2024 - Last Modified: Thu May 09 09:28:25 UTC 2024 - 8.8K bytes - Viewed (0)