mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
all: Change time unit
Signed-off-by: Sasha Melentyev <sasha@melentyev.io>
This commit is contained in:
parent
efa144a66a
commit
006e747a44
@ -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()
|
||||||
|
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user