mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
test: Env unit test RPC errors return a unique result: (#4877)
* telENV_RPC_FAILED is a new code, reserved exclusively for unit tests when RPC fails. This will make those types of errors distinct and easier to test for when expected and/or diagnose when not. * Output RPC command result when result is not expected.
This commit is contained in:
@@ -149,7 +149,7 @@ struct Regression_test : public beast::unit_test::suite
|
||||
secp256r1Sig->setFieldVL(sfSigningPubKey, *pubKeyBlob);
|
||||
jt.stx.reset(secp256r1Sig.release());
|
||||
|
||||
env(jt, ter(temINVALID));
|
||||
env(jt, ter(telENV_RPC_FAILED));
|
||||
};
|
||||
|
||||
Account const alice{"alice", KeyType::secp256k1};
|
||||
|
||||
Reference in New Issue
Block a user