Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
yegorskii committed Feb 5, 2024
1 parent 917f11e commit 206fa0a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cloud/filestore/libs/storage/service/service_ut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1485,7 +1485,8 @@ Y_UNIT_TEST_SUITE(TStorageServiceTest)
service.CreateFileStore("test", 1000);

auto& runtime = env.GetRuntime();
runtime.SetObserverFunc([&] (TAutoPtr<IEventHandle>& event) mutable {
runtime.SetObserverFunc(
[&] (TTestActorRuntimeBase& runtime, TAutoPtr<IEventHandle>& event) mutable {
switch (event->GetTypeRewrite()) {
case TEvIndexTablet::EvCreateSessionRequest: {
const auto* msg =
Expand All @@ -1495,7 +1496,7 @@ Y_UNIT_TEST_SUITE(TStorageServiceTest)
}
}

return TTestActorRuntime::DefaultObserverFunc(event);
return TTestActorRuntime::DefaultObserverFunc(runtime, event);
});

THeaders headers = {"test", "client", "", 0};
Expand Down

0 comments on commit 206fa0a

Please sign in to comment.