aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2014-08-24 01:57:52 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2014-08-24 02:06:09 +0200
commit5cd00bc8cb6820d3b41bea329fcf0c26c03db64a (patch)
tree174862fcca9125ed73cd6ececd9aca0d4b4305d4 /src/test
parent57fe1eaadc7c404b199239351e7bd80f48f3bcba (diff)
parenteb0b56b19017ab5c16c745e6da39c53126924ed6 (diff)
Merge pull request #4618
eb0b56b Simplify serialize.h's exception handling (Pieter Wuille)
Diffstat (limited to 'src/test')
-rw-r--r--src/test/alert_tests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/alert_tests.cpp b/src/test/alert_tests.cpp
index b16f3f7f57..e3066a51ab 100644
--- a/src/test/alert_tests.cpp
+++ b/src/test/alert_tests.cpp
@@ -83,7 +83,7 @@ struct ReadAlerts
std::vector<unsigned char> vch(alert_tests::alertTests, alert_tests::alertTests + sizeof(alert_tests::alertTests));
CDataStream stream(vch, SER_DISK, CLIENT_VERSION);
try {
- while (stream.good())
+ while (!stream.eof())
{
CAlert alert;
stream >> alert;