From f03e59326d72f883865f18d9809c2f1121e38c22 Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Tue, 19 Jan 2016 21:54:07 -0800 Subject: [PATCH] test semaphore #2 --- integration/v3_grpc_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/integration/v3_grpc_test.go b/integration/v3_grpc_test.go index 8b6dfad3878c..47453c08ee7c 100644 --- a/integration/v3_grpc_test.go +++ b/integration/v3_grpc_test.go @@ -16,6 +16,7 @@ package integration import ( "bytes" "fmt" + "log" "math/rand" "reflect" "sort" @@ -706,16 +707,16 @@ func TestV3WatchMultipleEventsFromUnsynced(t *testing.T) { continue } lastEvents = append(lastEvents, resp.Events...) - fmt.Println("lastEvents adding:", resp.Events) + log.Println("lastEvents adding:", resp.Events) } - fmt.Println("lastEvents loop done... took", time.Since(st)) + log.Println("lastEvents loop done... took", time.Since(st)) sort.Sort(eventsSortByKey(lastEvents)) if !reflect.DeepEqual(lastEvents, lastWevents) { t.Errorf("lastEvents got = %+v, want = %+v", lastEvents, lastWevents) } - fmt.Println("wait...") + log.Println("wait...") rok, nr := WaitResponse(wStream, 1*time.Second) if !rok { t.Errorf("unexpected pb.WatchResponse is received %+v", nr)