diff --git a/util/timer_test.cc b/util/timer_test.cc index 0200cf69b..18b0b90c9 100644 --- a/util/timer_test.cc +++ b/util/timer_test.cc @@ -289,7 +289,6 @@ TEST_F(TimerTest, CancelRunningTask) { Timer timer(mock_env_.get()); ASSERT_TRUE(timer.Start()); int* value = new int; - ASSERT_NE(nullptr, value); // make linter happy *value = 0; SyncPoint::GetInstance()->DisableProcessing(); SyncPoint::GetInstance()->LoadDependency({ @@ -337,7 +336,6 @@ TEST_F(TimerTest, ShutdownRunningTask) { ASSERT_TRUE(timer.Start()); int* value = new int; - ASSERT_NE(nullptr, value); *value = 0; timer.Add( [&]() {