mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-12 10:55:46 +02:00
fix(server): Initialize ServerFamily with all listeners. (#1485)
* fix(server): Initialize ServerFamily with all listeners. - Add a test for CLIENT LIST which is the visible result of this. * use std move
This commit is contained in:
parent
1ee0e30255
commit
52192e0596
7 changed files with 35 additions and 14 deletions
|
@ -138,7 +138,7 @@ void BaseFamilyTest::SetUp() {
|
|||
|
||||
Service::InitOpts opts;
|
||||
opts.disable_time_update = true;
|
||||
service_->Init(nullptr, nullptr, opts);
|
||||
service_->Init(nullptr, {}, opts);
|
||||
|
||||
TEST_current_time_ms = absl::GetCurrentTimeNanos() / 1000000;
|
||||
auto cb = [&](EngineShard* s) { s->db_slice().UpdateExpireBase(TEST_current_time_ms - 1000, 0); };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue