summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2019-05-17 13:54:03 -0400
committerBenety Goh <benety@mongodb.com>2019-05-17 13:54:18 -0400
commit6cebd61ff8d36e5b61e491419baa4808a98324a6 (patch)
tree8c058568f008685ba7f8ed4ffe123980548f636a /src
parent1d1a7182c70a4c13782af9a60067cac5008ca3c6 (diff)
downloadmongo-6cebd61ff8d36e5b61e491419baa4808a98324a6.tar.gz
SERVER-40985 handle windows line endings in test
Diffstat (limited to 'src')
-rw-r--r--src/mongo/s/transaction_router_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/s/transaction_router_test.cpp b/src/mongo/s/transaction_router_test.cpp
index cda3c684205..2cff98f6174 100644
--- a/src/mongo/s/transaction_router_test.cpp
+++ b/src/mongo/s/transaction_router_test.cpp
@@ -3044,7 +3044,7 @@ TEST_F(TransactionRouterMetricsTest, SlowLoggingPrintsDurationAtEnd) {
tickSource()->advance(Milliseconds(111));
assertDurationIs(Milliseconds(111));
runCommit(kDummyOkRes);
- ASSERT_EQUALS(1, countLogLinesContaining(" 111ms\n"));
+ ASSERT_EQUALS(1, countLogLinesContaining(" 111ms\n") + countLogLinesContaining(" 111ms\r\n"));
}
//