- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 3,920 for Hour (0.07 sec)
-
src/context/benchmark_test.go
cf := make([]CancelFunc, perPContexts) for j := range cf { _, cf[j] = WithTimeout(root, time.Hour) } ccf[i] = cf }(i) } wg.Wait() b.ResetTimer() b.RunParallel(func(pb *testing.PB) { wcf := make([]CancelFunc, 10) for pb.Next() { for i := range wcf { _, wcf[i] = WithTimeout(root, time.Hour) } for _, f := range wcf { f() } } }) b.StopTimer()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Oct 02 00:44:24 UTC 2021 - 3.8K bytes - Viewed (0) -
pkg/kubelet/util/sliceutils/sliceutils_test.go
Namespace: v1.NamespaceDefault, CreationTimestamp: metav1.Time{ Time: time.Now().Add(time.Hour * 1), }, }, }, { ObjectMeta: metav1.ObjectMeta{ Name: "foo3", Namespace: v1.NamespaceDefault, CreationTimestamp: metav1.Time{ Time: time.Now().Add(time.Hour * 2), }, }, }, } } func TestPodsByCreationTimeLen(t *testing.T) { fooTests := []struct {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 13 08:27:42 UTC 2023 - 4.7K bytes - Viewed (0) -
security/pkg/pki/util/generate_cert_test.go
vbw9mUuRBuYCROUaNv2/TAkauxVPCYPq7Ow= -----END CERTIFICATE-----` ) func TestGenCertKeyFromOptions(t *testing.T) { // set "notBefore" to be one hour ago, this ensures the issued certificate to // be valid as of now. caCertNotBefore := now.Add(-time.Hour) caCertTTL := 24 * time.Hour host := "test_ca.com" // Options to generate a CA cert with RSA. rsaCaCertOptions := CertOptions{ Host: host,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Nov 06 12:48:53 UTC 2023 - 29.4K bytes - Viewed (0) -
src/time/zoneinfo.go
// Most calls to FixedZone have an unnamed zone with an offset by the hour. // Optimize for that case by returning the same *Location for a given hour. const hoursBeforeUTC = 12 const hoursAfterUTC = 14 hour := offset / 60 / 60 if name == "" && -hoursBeforeUTC <= hour && hour <= +hoursAfterUTC && hour*60*60 == offset { unnamedFixedZonesOnce.Do(func() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:21:30 UTC 2024 - 18.2K bytes - Viewed (0) -
tests/non_std_test.go
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Wed May 08 04:07:58 UTC 2024 - 1.9K bytes - Viewed (0) -
cmd/kube-scheduler/app/server_test.go
}, wantLeaderElection: &componentbaseconfig.LeaderElectionConfiguration{ LeaderElect: false, // from CLI args LeaseDuration: metav1.Duration{Duration: 2 * time.Hour}, // from CLI args RenewDeadline: metav1.Duration{Duration: 10 * time.Second}, RetryPeriod: metav1.Duration{Duration: 2 * time.Second}, ResourceLock: "leases",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 14.2K bytes - Viewed (0) -
src/log/log_test.go
now := time.Now().UTC() l.Print("hello") want := fmt.Sprintf("Test:%d/%.2d/%.2d %.2d:%.2d:%.2d hello\n", now.Year(), now.Month(), now.Day(), now.Hour(), now.Minute(), now.Second()) got := b.String() if got == want { return } // It's possible we crossed a second boundary between getting now and logging,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 21 20:04:37 UTC 2023 - 7.4K bytes - Viewed (0) -
src/cmd/go/internal/cache/cache.go
// Go developers found that essentially all reuse of cached entries happened // within 5 days of the previous reuse. See golang.org/issue/22990. const ( mtimeInterval = 1 * time.Hour trimInterval = 24 * time.Hour trimLimit = 5 * 24 * time.Hour ) // used makes a best-effort attempt to update mtime on file, // so that mtime reflects cache access time. // // Because the reflection only needs to be approximate,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Mar 09 14:19:39 UTC 2024 - 20.3K bytes - Viewed (0) -
pilot/pkg/leaderelection/k8sleaderelection/healthzadaptor_test.go
Name: "foo", }, observedRecord: rl.LeaderElectionRecord{ HolderIdentity: "healthTest", }, observedTime: current, clock: clock.NewFakeClock(current.Add(time.Hour)), }, }, { description: "call check when the lease is far expired but held by another server", expected: nil, adaptorTimeout: time.Second * 20, elector: &LeaderElector{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Sep 12 18:41:53 UTC 2022 - 5.3K bytes - Viewed (0) -
internal/config/callhome/callhome.go
// // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 2.6K bytes - Viewed (0)