mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-26 11:11:41 +00:00
Use protobuf enums
This commit is contained in:
@ -39,7 +39,7 @@ func TestStream(t *testing.T) {
|
||||
|
||||
// Process response
|
||||
switch res.Type {
|
||||
case types.ResponseTypeAppendTx:
|
||||
case types.MessageType_AppendTx:
|
||||
counter += 1
|
||||
if types.RetCode(res.Code) != types.RetCodeOK {
|
||||
t.Error("AppendTx failed with ret_code", res.Code)
|
||||
@ -54,7 +54,7 @@ func TestStream(t *testing.T) {
|
||||
close(done)
|
||||
}()
|
||||
}
|
||||
case types.ResponseTypeFlush:
|
||||
case types.MessageType_Flush:
|
||||
// ignore
|
||||
default:
|
||||
t.Error("Unexpected response type", res.Type)
|
||||
|
Reference in New Issue
Block a user