Skip to content

Commit 248a359

Browse files
author
Michael Fero
committed
test: Fixing up intermittent failing session test
1 parent d36334f commit 248a359

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cpp-driver/gtests/src/unit/tests/test_session.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,8 @@ TEST_F(SessionUnitTest, ExecuteQueryWithCompleteOutageSpinDown) {
360360
QueryRequest::Ptr request(new QueryRequest("blah", 0));
361361
Future::Ptr future = session.execute(request, NULL);
362362
ASSERT_TRUE(future->wait_for(WAIT_FOR_TIME));
363-
ASSERT_EQ(CASS_ERROR_LIB_NO_HOSTS_AVAILABLE, future->error()->code);
363+
EXPECT_TRUE(CASS_ERROR_LIB_NO_HOSTS_AVAILABLE == future->error()->code ||
364+
CASS_ERROR_LIB_REQUEST_TIMED_OUT == future->error()->code);
364365

365366
// Restart a node and execute query to ensure session recovers
366367
ASSERT_EQ(cluster.start(2), 0);

0 commit comments

Comments
 (0)