|
|
@ -27,22 +27,22 @@ func testCounter() { |
|
|
|
} |
|
|
|
|
|
|
|
fmt.Printf("Running %s test with abci=%s\n", abciApp, abciType) |
|
|
|
appProc := StartApp(abciApp) |
|
|
|
appProc := startApp(abciApp) |
|
|
|
defer appProc.StopProcess(true) |
|
|
|
client := StartClient(abciType) |
|
|
|
client := startClient(abciType) |
|
|
|
defer client.Stop() |
|
|
|
|
|
|
|
SetOption(client, "serial", "on") |
|
|
|
Commit(client, nil) |
|
|
|
DeliverTx(client, []byte("abc"), types.CodeType_BadNonce, nil) |
|
|
|
Commit(client, nil) |
|
|
|
DeliverTx(client, []byte{0x00}, types.CodeType_OK, nil) |
|
|
|
Commit(client, []byte{0, 0, 0, 0, 0, 0, 0, 1}) |
|
|
|
DeliverTx(client, []byte{0x00}, types.CodeType_BadNonce, nil) |
|
|
|
DeliverTx(client, []byte{0x01}, types.CodeType_OK, nil) |
|
|
|
DeliverTx(client, []byte{0x00, 0x02}, types.CodeType_OK, nil) |
|
|
|
DeliverTx(client, []byte{0x00, 0x03}, types.CodeType_OK, nil) |
|
|
|
DeliverTx(client, []byte{0x00, 0x00, 0x04}, types.CodeType_OK, nil) |
|
|
|
DeliverTx(client, []byte{0x00, 0x00, 0x06}, types.CodeType_BadNonce, nil) |
|
|
|
Commit(client, []byte{0, 0, 0, 0, 0, 0, 0, 5}) |
|
|
|
setOption(client, "serial", "on") |
|
|
|
commit(client, nil) |
|
|
|
deliverTx(client, []byte("abc"), types.CodeType_BadNonce, nil) |
|
|
|
commit(client, nil) |
|
|
|
deliverTx(client, []byte{0x00}, types.CodeType_OK, nil) |
|
|
|
commit(client, []byte{0, 0, 0, 0, 0, 0, 0, 1}) |
|
|
|
deliverTx(client, []byte{0x00}, types.CodeType_BadNonce, nil) |
|
|
|
deliverTx(client, []byte{0x01}, types.CodeType_OK, nil) |
|
|
|
deliverTx(client, []byte{0x00, 0x02}, types.CodeType_OK, nil) |
|
|
|
deliverTx(client, []byte{0x00, 0x03}, types.CodeType_OK, nil) |
|
|
|
deliverTx(client, []byte{0x00, 0x00, 0x04}, types.CodeType_OK, nil) |
|
|
|
deliverTx(client, []byte{0x00, 0x00, 0x06}, types.CodeType_BadNonce, nil) |
|
|
|
commit(client, []byte{0, 0, 0, 0, 0, 0, 0, 5}) |
|
|
|
} |