Skip to content

Commit

Permalink
Minor syntax change.
Browse files Browse the repository at this point in the history
  • Loading branch information
rakshasa committed Dec 15, 2024
1 parent cac38b4 commit ca2472e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/torrent/test_http.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class TestHttp : public torrent::Http {

TestHttp(bool *destroyed = NULL) : m_flags(0), m_destroyed(destroyed) {}
virtual ~TestHttp() { if (m_destroyed) *m_destroyed = true; }

virtual void start() { m_flags |= flag_active; }
virtual void close() { m_flags &= ~flag_active; }

Expand Down Expand Up @@ -89,7 +89,7 @@ test_http::test_basic() {
CPPUNIT_ASSERT(http->timeout() == 0);
http->set_timeout(666);
CPPUNIT_ASSERT(http->timeout() == 666);

delete http;
delete http_stream;
}
Expand All @@ -103,7 +103,8 @@ test_http::test_done() {

// Check that we didn't delete...

CPPUNIT_ASSERT(done_counter == 1 && failed_counter == 0);
CPPUNIT_ASSERT(done_counter == 1);
CPPUNIT_ASSERT(failed_counter == 0);
}

void
Expand All @@ -115,7 +116,8 @@ test_http::test_failure() {

// Check that we didn't delete...

CPPUNIT_ASSERT(done_counter == 0 && failed_counter == 1);
CPPUNIT_ASSERT(done_counter == 0);
CPPUNIT_ASSERT(failed_counter == 1);
}

void
Expand Down

0 comments on commit ca2472e

Please sign in to comment.