diff options
author | Tor Egge <Tor.Egge@oath.com> | 2018-01-23 09:25:43 +0000 |
---|---|---|
committer | Tor Egge <Tor.Egge@oath.com> | 2018-01-23 09:25:43 +0000 |
commit | 55350f5c1c4c1a2f0d37e31d3495ee7adfc01dac (patch) | |
tree | 43037ad94611ac8f1961f417e991573474509596 /searchlib | |
parent | 6d6024ee841e7f07b392aae1476eabf10931d1d9 (diff) |
Use ASSERT_TRUE instead of EXPECT_TRUE.
Continuing on failure would lead to test program crashing.
Diffstat (limited to 'searchlib')
-rw-r--r-- | searchlib/src/tests/attribute/imported_attribute_vector/imported_attribute_vector_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searchlib/src/tests/attribute/imported_attribute_vector/imported_attribute_vector_test.cpp b/searchlib/src/tests/attribute/imported_attribute_vector/imported_attribute_vector_test.cpp index 2b4f8afab43..98003a69cf1 100644 --- a/searchlib/src/tests/attribute/imported_attribute_vector/imported_attribute_vector_test.cpp +++ b/searchlib/src/tests/attribute/imported_attribute_vector/imported_attribute_vector_test.cpp @@ -594,7 +594,7 @@ struct TensorAttrFixtureBase : FixtureBase<useReadGuard> { } void assertTensor(DocId docId, const Tensor &expTensor) { auto tensor = getTensor(docId); - EXPECT_TRUE(!!tensor); + ASSERT_TRUE(!!tensor); EXPECT_EQUAL(expTensor, *tensor); } void assertTensors() { |