Skip to content

Commit 292948e

Browse files
author
Wei Deng
committed
CPP-972: make expected_message more generic so it can match C* 4.0 result.error_message in test ServerSideFailureTests.Integration_Cassandra_ErrorFunctionAlreadyExists
1 parent adcb664 commit 292948e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/src/integration/tests/test_server_side_failure.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,7 @@ CASSANDRA_INTEGRATION_TEST_F(ServerSideFailureTests, ErrorFunctionAlreadyExists)
158158
session_.execute(create_function_query);
159159
Result result = session_.execute(Statement(create_function_query), false);
160160
EXPECT_EQ(CASS_ERROR_SERVER_INVALID_QUERY, result.error_code());
161-
EXPECT_TRUE(result.error_message().find("(double) -> double already exists") !=
162-
std::string::npos);
161+
EXPECT_TRUE(result.error_message().find(" already exists") != std::string::npos);
163162

164163
ErrorResult error_result = result.error_result();
165164
ASSERT_TRUE(error_result);

0 commit comments

Comments
 (0)