integration: update gRPC, proto interface

This commit is contained in:
Gyu-Ho Lee
2016-01-26 17:41:27 -08:00
parent 1145414a08
commit 51e62aa007
5 changed files with 154 additions and 40 deletions

View File

@ -32,7 +32,11 @@ func TestQueueOneReaderOneWriter(t *testing.T) {
clus := newClusterGRPC(t, &clusterConfig{size: 1})
defer clus.Terminate(t)
done := make(chan struct{})
go func() {
defer func() {
done <- struct{}{}
}()
etcdc := recipe.NewEtcdClient(clus.RandConn())
q := recipe.NewQueue(etcdc, "testq")
for i := 0; i < 5; i++ {
@ -53,6 +57,7 @@ func TestQueueOneReaderOneWriter(t *testing.T) {
t.Fatalf("expected dequeue value %v, got %v", s, i)
}
}
<-done
}
func TestQueueManyReaderOneWriter(t *testing.T) {