55 | @@ -56,6 +56,11 @@ def run_test(self):
56 | assert_raises_rpc_error(-14, "wallet passphrase entered was incorrect", self.nodes[0].walletpassphrase, passphrase, 10)
57 | self.nodes[0].walletpassphrase(passphrase2, 10)
58 | assert_equal(privkey, self.nodes[0].dumpprivkey(address))
59 | + self.nodes[0].walletlock()
60 | +
61 | + # Test timeout bounds
62 | + assert_raises_rpc_error(-8, "Timeout cannot be negative.", self.nodes[0].walletpassphrase, passphrase, -10)
63 | + assert_raises_rpc_error(-1, "JSON integer out of range", self.nodes[0].walletpassphrase, passphrase, 2147483648)
2147483648 is not guaranteed to be out of range.
How can you guarantee that a number will be out of range?
Why don't you add test for 2147483647? It should work correctly for this value but we don't test it today.
On the other hand waiting for timeout could be too long :) It should just accept the value.