Skip to content
Snippets Groups Projects
Commit 2516dfed authored by Christian Groschupp's avatar Christian Groschupp
Browse files

use TimeToSleep for setupSlowLog

parent 690f0dc6
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -121,7 +121,7 @@ func setupSlowLog(t *testing.T, addr string) error {
 
// Have to pass in the sleep time in seconds so we have to divide
// the number of milliseconds by 1000 to get number of seconds
_, err = c.Do("DEBUG", "SLEEP", 0.5)
_, err = c.Do("DEBUG", "SLEEP", TimeToSleep/1000.0)
if err != nil {
t.Errorf("couldn't setup redis, err: %s ", err)
return err
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment