Merge pull request #14756 from sashamelentyev/time

all: Change time unit
This commit is contained in:
Benjamin Wang 2022-11-15 15:54:30 +08:00 committed by GitHub
commit f49d96f8b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -328,7 +328,7 @@ func TestStoreWatchExpireWithHiddenKey(t *testing.T) {
s.clock = fc
s.Create("/_foo", false, "bar", false, TTLOptionSet{ExpireTime: fc.Now().Add(500 * time.Millisecond)})
s.Create("/foofoo", false, "barbarbar", false, TTLOptionSet{ExpireTime: fc.Now().Add(1000 * time.Millisecond)})
s.Create("/foofoo", false, "barbarbar", false, TTLOptionSet{ExpireTime: fc.Now().Add(time.Second)})
w, _ := s.Watch("/", true, false, 0)
c := w.EventChan()

View File

@ -157,7 +157,7 @@ func authGracefulDisableTest(cx ctlCtx) {
defer close(donec)
// sleep a bit to let the watcher connects while auth is still enabled
time.Sleep(1000 * time.Millisecond)
time.Sleep(time.Second)
// now disable auth...
if err := ctlV3AuthDisable(cx); err != nil {