Fix tests

This commit is contained in:
zhangxiao871 2022-01-20 10:49:16 +08:00
parent deebfd1e29
commit be3d3886b1

View File

@ -1218,6 +1218,9 @@ nuraft::ptr<nuraft::buffer> getBufferFromZKRequest(int64_t session_id, const Coo
{
DB::WriteBufferFromNuraftBuffer buf;
DB::writeIntBinary(session_id, buf);
using namespace std::chrono;
auto time = duration_cast<milliseconds>(system_clock::now().time_since_epoch()).count();
DB::writeIntBinary(time, buf);
request->write(buf);
return buf.getBuffer();
}