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:
Roy Jacobson 2023-07-02 10:01:54 +02:00 committed by GitHub
parent 1ee0e30255
commit 52192e0596
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 35 additions and 14 deletions

View file

@ -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); };