Duration order consistency when multiplying number by time unit
This commit is contained in:
parent
9ef4f47ba0
commit
bd75eddc8e
6 changed files with 6 additions and 6 deletions
|
@ -24,7 +24,7 @@ func fakeRedis(t *testing.T, listener net.Listener) {
|
|||
}
|
||||
|
||||
if string(buf[:4]) == "ping" {
|
||||
time.Sleep(time.Millisecond * 1)
|
||||
time.Sleep(1 * time.Millisecond)
|
||||
if _, err := conn.Write([]byte("PONG")); err != nil {
|
||||
conn.Close()
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue