integration: log microsecond time for integration tests
This commit is contained in:
@ -3,6 +3,7 @@ package integration
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
|
"log"
|
||||||
"net"
|
"net"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/http/httptest"
|
"net/http/httptest"
|
||||||
@ -20,6 +21,11 @@ import (
|
|||||||
|
|
||||||
const tickDuration = 5 * time.Millisecond
|
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 TestClusterOf1(t *testing.T) { testCluster(t, 1) }
|
||||||
func TestClusterOf3(t *testing.T) { testCluster(t, 3) }
|
func TestClusterOf3(t *testing.T) { testCluster(t, 3) }
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user