mirror of
https://github.com/dashpay/dash.git
synced 2024-12-28 21:42:47 +01:00
Litecoin: Fix alert test
Protocol version is now 70002. So 70001 alerts no longer apply to us. But the test is still testing the alert notify behavior correctly because there is still one alert that applies.
This commit is contained in:
parent
1b5cb0866e
commit
dbc5f6d7f4
@ -170,11 +170,8 @@ BOOST_AUTO_TEST_CASE(AlertNotify)
|
||||
alert.ProcessAlert(false);
|
||||
|
||||
std::vector<std::string> r = read_lines(temp);
|
||||
BOOST_CHECK_EQUAL(r.size(), 4u);
|
||||
BOOST_CHECK_EQUAL(r[0], "Alert 1");
|
||||
BOOST_CHECK_EQUAL(r[1], "Alert 2, cancels 1");
|
||||
BOOST_CHECK_EQUAL(r[2], "Alert 2, cancels 1");
|
||||
BOOST_CHECK_EQUAL(r[3], "Evil Alert; /bin/ls; echo "); // single-quotes should be removed
|
||||
BOOST_CHECK_EQUAL(r.size(), 1u);
|
||||
BOOST_CHECK_EQUAL(r[0], "Evil Alert; /bin/ls; echo "); // single-quotes should be removed
|
||||
|
||||
boost::filesystem::remove(temp);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user