From 346c76affe9e78b6ca2738c4a56dbb9c00f31102 Mon Sep 17 00:00:00 2001 From: Chen Yufei Date: Fri, 23 Apr 2021 20:01:28 +0800 Subject: [PATCH] test: remove ChunkedArrayTest with 0 length. This triggers Log::Fatal which aborts the test program. --- tests/cpp_tests/test_chunked_array.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tests/cpp_tests/test_chunked_array.cpp b/tests/cpp_tests/test_chunked_array.cpp index 9bfd857299ab..286b1d88611f 100644 --- a/tests/cpp_tests/test_chunked_array.cpp +++ b/tests/cpp_tests/test_chunked_array.cpp @@ -65,11 +65,6 @@ class ChunkedArrayTest : public testing::Test { }; -/*! ChunkedArray cannot be built from chunks of size 0. */ -TEST_F(ChunkedArrayTest, constructorWithChunkSize0Throws) { - ASSERT_THROW(ChunkedArray ca(0), std::runtime_error); -} - /*! get_chunk_size() should return the size used in the constructor */ TEST_F(ChunkedArrayTest, constructorWithChunkSize) { for (size_t chunk_size = 1; chunk_size < 10; ++chunk_size) {