all: Change time unit

Signed-off-by: Sasha Melentyev <sasha@melentyev.io>
This commit is contained in:
Sasha Melentyev 2022-11-15 01:15:01 +03:00
parent efa144a66a
commit 006e747a44
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -157,7 +157,7 @@ func authGracefulDisableTest(cx ctlCtx) {
defer close(donec) defer close(donec)
// sleep a bit to let the watcher connects while auth is still enabled // 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... // now disable auth...
if err := ctlV3AuthDisable(cx); err != nil { if err := ctlV3AuthDisable(cx); err != nil {