From 7af679333a0b11d8054899db1874b7fca2591b2c Mon Sep 17 00:00:00 2001 From: Yicheng Qin Date: Fri, 17 Oct 2014 11:25:45 -0700 Subject: [PATCH] integration: log microsecond time for integration tests --- integration/cluster_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/integration/cluster_test.go b/integration/cluster_test.go index 4dd0937da..421c7fd77 100644 --- a/integration/cluster_test.go +++ b/integration/cluster_test.go @@ -3,6 +3,7 @@ package integration import ( "fmt" "io/ioutil" + "log" "net" "net/http" "net/http/httptest" @@ -20,6 +21,11 @@ import ( const tickDuration = 5 * time.Millisecond +func init() { + // open microsecond-level time log for integration test debugging + log.SetFlags(log.Ltime | log.Lmicroseconds | log.Lshortfile) +} + func TestClusterOf1(t *testing.T) { testCluster(t, 1) } func TestClusterOf3(t *testing.T) { testCluster(t, 3) }