Преглед на файлове

Using the wrong unit in time.Sleep() appears to send Go to sleep for quite a while

Ben Hood преди 11 години
родител
ревизия
34bae1c0cc
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      cassandra_test.go

+ 1 - 1
cassandra_test.go

@@ -113,7 +113,7 @@ func TestRingDiscovery(t *testing.T) {
 
 	if *clusterSize > 1 {
 		// wait for autodiscovery to update the pool with the list of known hosts
-		time.Sleep(*flagAutoWait * time.Millisecond)
+		time.Sleep(*flagAutoWait)
 	}
 
 	if *clusterSize != session.Pool.Size() {