Skip to content

Commit 2ae9341

Browse files
authored
Avoid global state in snapshot (#5429)
1 parent afca8bc commit 2ae9341

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Tests/Modules/SnapshotAndRestore/Snapshot/CoordinatedSnapshotTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ public CoordinatedSnapshotTests(IntrusiveOperationCluster cluster, EndpointUsage
4040
{
4141
CreateSnapshotStep, u => u
4242
.Calls<SnapshotDescriptor, SnapshotRequest, ISnapshotRequest, SnapshotResponse>(
43-
v => new SnapshotRequest($"{v}-repository", $"{v}-source") { Indices = $"{v}-index", WaitForCompletion = true },
44-
(v, d) => d.Index($"{v}-index").WaitForCompletion(true),
43+
v => new SnapshotRequest($"{v}-repository", $"{v}-source") { Indices = $"{v}-index", WaitForCompletion = true, IncludeGlobalState = false },
44+
(v, d) => d.Index($"{v}-index").WaitForCompletion(true).IncludeGlobalState(false),
4545
(v, c, f) => c.Snapshot.Snapshot($"{v}-repository", $"{v}-source", f),
4646
(v, c, f) => c.Snapshot.SnapshotAsync($"{v}-repository", $"{v}-source", f),
4747
(_, c, r) => c.Snapshot.Snapshot(r),

0 commit comments

Comments
 (0)