Skip to content
/ etcd Public
forked from etcd-io/etcd

Commit

Permalink
test semaphore #2
Browse files Browse the repository at this point in the history
  • Loading branch information
gyuho committed Jan 20, 2016
1 parent 12f27f7 commit f03e593
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions integration/v3_grpc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ package integration
import (
"bytes"
"fmt"
"log"
"math/rand"
"reflect"
"sort"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit f03e593

Please sign in to comment.