diff options
author | Henrik Edin <henrik.edin@mongodb.com> | 2020-01-21 20:23:50 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2020-01-21 20:23:50 +0000 |
commit | b7846ff4dceec36e344b0f87c48783dffa2c6a32 (patch) | |
tree | 73068bb126bf19901e75bb972a941f17c9759754 /src/mongo/client/fetcher_test.cpp | |
parent | 41b3d7da7c763e304bc8f4056d0d31d200742e0b (diff) | |
download | mongo-b7846ff4dceec36e344b0f87c48783dffa2c6a32.tar.gz |
SERVER-45583 Unittests are using logv2.
Capture log system uses logv2, tests can handle converted log statements.
Diffstat (limited to 'src/mongo/client/fetcher_test.cpp')
-rw-r--r-- | src/mongo/client/fetcher_test.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/client/fetcher_test.cpp b/src/mongo/client/fetcher_test.cpp index 557f47a5b57..b03ba051978 100644 --- a/src/mongo/client/fetcher_test.cpp +++ b/src/mongo/client/fetcher_test.cpp @@ -837,7 +837,7 @@ TEST_F(FetcherTest, EmptyGetMoreRequestAfterFirstBatchMakesFetcherInactiveAndKil // killCursors command request will be canceled by executor on shutdown. tearDown(); ASSERT_EQUALS(1, - countLogLinesContaining( + countTextFormatLogLinesContaining( "killCursors command task failed: CallbackCanceled: Callback canceled")); } @@ -910,7 +910,7 @@ TEST_F(FetcherTest, UpdateNextActionAfterSecondBatch) { getNet()->runReadyNetworkOperations(); } - ASSERT_EQUALS(1, countLogLinesContaining("killCursors command failed: UnknownError")); + ASSERT_EQUALS(1, countTextFormatLogLinesContaining("killCursors command failed: UnknownError")); } /** @@ -979,8 +979,8 @@ TEST_F(FetcherTest, ShutdownDuringSecondBatch) { // Fetcher should attempt (unsuccessfully) to schedule a killCursors command. ASSERT_EQUALS(1, - countLogLinesContaining("failed to schedule killCursors command: " - "ShutdownInProgress: Shutdown in progress")); + countTextFormatLogLinesContaining("failed to schedule killCursors command: " + "ShutdownInProgress: Shutdown in progress")); ASSERT_EQUALS(ErrorCodes::ShutdownInProgress, status.code()); } |