Update test to verify order of zrpcunsafe log messages

This commit is contained in:
Simon 2017-02-01 14:41:35 -08:00
parent a1477f6fac
commit a45d2ec79c
1 changed files with 2 additions and 0 deletions

View File

@ -126,8 +126,10 @@ class WalletProtectCoinbaseTest (BitcoinTestFramework):
logdata = myfile.readlines()
for logline in logdata:
if myopid + ": z_sendmany initialized" in logline and mytaddr in logline and myzaddr in logline:
assert_equal(logcounter, 0) # verify order of log messages
logcounter = logcounter + 1
if myopid + ": z_sendmany finished" in logline and mytxid in logline:
assert_equal(logcounter, 1)
logcounter = logcounter + 1
assert_equal(logcounter, 2)