diff options
Diffstat (limited to 'documentapi/src/tests/loadtypes/loadtypetest.cpp')
-rw-r--r-- | documentapi/src/tests/loadtypes/loadtypetest.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/documentapi/src/tests/loadtypes/loadtypetest.cpp b/documentapi/src/tests/loadtypes/loadtypetest.cpp index 20efb281300..178b9f9227b 100644 --- a/documentapi/src/tests/loadtypes/loadtypetest.cpp +++ b/documentapi/src/tests/loadtypes/loadtypetest.cpp @@ -4,9 +4,6 @@ #include <vespa/config/config.h> #include <vespa/config/common/exceptions.h> #include <vespa/vespalib/gtest/gtest.h> -#include <gmock/gmock.h> - -using namespace ::testing; namespace documentapi { @@ -17,7 +14,7 @@ assertConfigFailure(const vespalib::string &configId, const vespalib::string &ex LoadTypeSet createdFromConfigId(configId); FAIL() << "Config was expected to fail with error: " << expError; } catch (config::InvalidConfigException &e) { - EXPECT_THAT(e.getMessage(), HasSubstr(expError)); + EXPECT_TRUE(e.getMessage().find(expError) != std::string::npos); } } |