瀏覽代碼

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