- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 4,994 for Hour (0.04 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) -
cmd/kubeadm/app/phases/certs/renewal/expiration_test.go
limitations under the License. */ package renewal import ( "crypto/x509" "math" "testing" "time" ) func TestExpirationInfo(t *testing.T) { validity := 365 * 24 * time.Hour cert := &x509.Certificate{ NotAfter: time.Now().Add(validity), } e := newExpirationInfo("x", cert, false)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jun 10 17:52:14 UTC 2019 - 1.1K 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) -
pkg/controller/certificates/signer/config/v1alpha1/defaults.go
// run it in your wrapper struct of this type in its `SetDefaults_` method. func RecommendedDefaultCSRSigningControllerConfiguration(obj *kubectrlmgrconfigv1alpha1.CSRSigningControllerConfiguration) { zero := metav1.Duration{} if obj.ClusterSigningDuration == zero { obj.ClusterSigningDuration = metav1.Duration{Duration: 365 * 24 * time.Hour} }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jul 09 12:14:55 UTC 2020 - 1.7K bytes - Viewed (0)