mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
Switch testing framework from MAIN to new UNITTEST network
UNITTEST inherites from MAIN but allows synamically changing its parameters using the ModifiableParams() interface
This commit is contained in:
parent
8d132431b4
commit
f0fd00cb77
10 changed files with 97 additions and 4 deletions
|
|
@ -175,7 +175,7 @@ BOOST_AUTO_TEST_CASE(base58_keys_valid_parse)
|
|||
BOOST_CHECK_MESSAGE(!secret.IsValid(), "IsValid pubkey as privkey:" + strTest);
|
||||
}
|
||||
}
|
||||
SelectParams(CBaseChainParams::MAIN);
|
||||
SelectParams(CBaseChainParams::UNITTEST);
|
||||
}
|
||||
|
||||
// Goal: check that generated keys match test vectors
|
||||
|
|
@ -243,7 +243,7 @@ BOOST_AUTO_TEST_CASE(base58_keys_valid_gen)
|
|||
CTxDestination nodest = CNoDestination();
|
||||
BOOST_CHECK(!dummyAddr.Set(nodest));
|
||||
|
||||
SelectParams(CBaseChainParams::MAIN);
|
||||
SelectParams(CBaseChainParams::UNITTEST);
|
||||
}
|
||||
|
||||
// Goal: check that base58 parsing code is robust against a variety of corrupted data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue