Skip to content

Commit

Permalink
issue-2725: change timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
vladstepanyuk committed Jan 24, 2025
1 parent 1d29d21 commit 1651cd6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cloud/blockstore/libs/storage/volume/volume_ut_session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@ struct TTestContext
TIntrusivePtr<TDiskRegistryState> DRState;
};

TTestContext SetupTest()
TTestContext SetupTest(TDuration agentRequestTimeout = TDuration::Seconds(1))
{
NProto::TStorageServiceConfig config;
config.SetAcquireNonReplicatedDevices(true);
config.SetNonReplicatedVolumeDirectAcquireEnabled(true);
config.SetAgentRequestTimeout(agentRequestTimeout.MilliSeconds());
config.SetClientRemountPeriod(2000);
auto state = MakeIntrusive<TDiskRegistryState>();
auto runtime = PrepareTestActorRuntime(config, state);
Expand Down Expand Up @@ -319,7 +320,7 @@ Y_UNIT_TEST_SUITE(TVolumeTest)

Y_UNIT_TEST(ShouldRejectTimedoutAcquireRequests)
{
auto [volume, runtime, _] = SetupTest();
auto [volume, runtime, _] = SetupTest(TDuration::MilliSeconds(100));

TVolumeClient writerClient(*runtime);

Expand Down

0 comments on commit 1651cd6

Please sign in to comment.