Do test server initialization in the `doNothing` test
@@ -530,13 +530,16 @@ public:
TEST_F(BasicFuncTests, doNothing)
{
+ CleanStorage();
+ Initialize();
+ std::this_thread::sleep_for(std::chrono::seconds(5));
+ FlushAndTeardown();
}
TEST_F(BasicFuncTests, sendOneEvent_immediatelyStop)
{
CleanStorage();
Initialize();
- std::this_thread::sleep_for(std::chrono::seconds(60));
EventProperties event("first_event");
event.SetProperty("property", "value");
logger->LogEvent(event);
