Browse Source

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.
0.8
coblee 11 years ago
parent
commit
dbc5f6d7f4
  1. 7
      src/test/alert_tests.cpp

7
src/test/alert_tests.cpp

@ -170,11 +170,8 @@ BOOST_AUTO_TEST_CASE(AlertNotify) @@ -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…
Cancel
Save