Responses/Requests -> Value

This commit is contained in:
Ethan Buchman
2016-05-17 20:06:24 -04:00
parent 32f83f9494
commit 5dc7bee57b
8 changed files with 253 additions and 245 deletions
+2 -2
View File
@@ -40,7 +40,7 @@ func TestStream(t *testing.T) {
}
// Process response
switch r := res.Responses.(type) {
switch r := res.Value.(type) {
case *types.Response_AppendTx:
counter += 1
if r.AppendTx.Code != types.CodeType_OK {
@@ -59,7 +59,7 @@ func TestStream(t *testing.T) {
case *types.Response_Flush:
// ignore
default:
t.Error("Unexpected response type", reflect.TypeOf(res.Responses))
t.Error("Unexpected response type", reflect.TypeOf(res.Value))
}
}
}()
+2 -2
View File
@@ -40,7 +40,7 @@ func TestStream(t *testing.T) {
}
// Process response
switch r := res.Responses.(type) {
switch r := res.Value.(type) {
case *types.Response_AppendTx:
counter += 1
if r.AppendTx.Code != types.CodeType_OK {
@@ -59,7 +59,7 @@ func TestStream(t *testing.T) {
case *types.Response_Flush:
// ignore
default:
t.Error("Unexpected response type", reflect.TypeOf(res.Responses))
t.Error("Unexpected response type", reflect.TypeOf(res.Value))
}
}
}()