summaryrefslogtreecommitdiffstats
path: root/logd/src/tests/watcher/watcher_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'logd/src/tests/watcher/watcher_test.cpp')
-rw-r--r--logd/src/tests/watcher/watcher_test.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/logd/src/tests/watcher/watcher_test.cpp b/logd/src/tests/watcher/watcher_test.cpp
index c2b379cc1a4..fffaac17058 100644
--- a/logd/src/tests/watcher/watcher_test.cpp
+++ b/logd/src/tests/watcher/watcher_test.cpp
@@ -71,8 +71,7 @@ struct DummyForwarder : public Forwarder {
void sendMode() override { ++sendModeCount; }
void forwardLine(std::string_view log_line) override {
std::lock_guard guard(lock);
- assert(log_line.size() > 0u);
- lines.emplace_back(log_line.substr(0, log_line.size() - 1));
+ lines.emplace_back(log_line);
cond.notify_all();
}
void flush() override { }