فهرست منبع

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() {