Skip to content
Snippets Groups Projects
Commit 66ef8ad3 authored by Sergey Yakubov's avatar Sergey Yakubov
Browse files

fix test

parent defc74db
No related branches found
No related tags found
No related merge requests found
......@@ -56,10 +56,12 @@ int main(int argc, char* argv[]) {
std::this_thread::sleep_for(std::chrono::milliseconds(10));
auto fi1 = fi;
fi1.id = 123;
auto fi2 = fi;
fi2.id = 123;
fi1.timestamp = std::chrono::system_clock::now();
db.Insert("data_test1", fi, false);
fi2.timestamp = std::chrono::system_clock::now()+std::chrono::minutes(1);
db.Insert("data_test1", fi1, false);
db.Insert("data_test1", fi2, false);
Assert(err, args.keyword);
......@@ -80,7 +82,7 @@ int main(int argc, char* argv[]) {
err = db.GetLastStream(&info);
M_AssertEq(nullptr, err);
M_AssertEq(fi1.id, info.last_id);
M_AssertEq(fi2.id, info.last_id);
M_AssertEq("test1",info.name);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment