Duration order consistency when multiplying number by time unit

This commit is contained in:
Maxim Fominykh 2019-11-27 01:38:03 +05:00 committed by Traefiker Bot
parent 9ef4f47ba0
commit bd75eddc8e
6 changed files with 6 additions and 6 deletions

View file

@ -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