mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #14756 from sashamelentyev/time
all: Change time unit
This commit is contained in:
commit
f49d96f8b7
@ -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()
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user