From dbc5f6d7f4ef7ba38157e12b6d9c52ff99aba695 Mon Sep 17 00:00:00 2001 From: coblee Date: Mon, 5 Aug 2013 00:58:47 -0700 Subject: [PATCH] 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. --- src/test/alert_tests.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/test/alert_tests.cpp b/src/test/alert_tests.cpp index f7a11376d3..f9e2be769b 100644 --- a/src/test/alert_tests.cpp +++ b/src/test/alert_tests.cpp @@ -170,11 +170,8 @@ BOOST_AUTO_TEST_CASE(AlertNotify) alert.ProcessAlert(false); std::vector 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);