Skip to content

Commit 2986c91

Browse files
committed
Fixed missing token
1 parent db27ba0 commit 2986c91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/DotNext.Tests/Net/Cluster/Consensus/Raft/MemoryBasedStateMachineTests.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public static async Task QueryAppendEntries(long partitionSize, bool caching, in
182182
Equal(2, entries.Count);
183183
Equal(0L, entries.First().Term); // element 0
184184
Equal(42L, entries.Skip(1).First().Term); // element 1
185-
Equal(entry1.Content, await entries[1].ToStringAsync(Encoding.UTF8));
185+
Equal(entry1.Content, await entries[1].ToStringAsync(Encoding.UTF8, token: token));
186186
Equal(entry1.Context, IsAssignableFrom<IInputLogEntry>(entries[1]).Context);
187187
return Missing.Value;
188188
};
@@ -196,7 +196,7 @@ public static async Task QueryAppendEntries(long partitionSize, bool caching, in
196196
Null(snapshotIndex);
197197
Single(entries);
198198
Equal(43L, entries[0].Term);
199-
Equal(entry2.Content, await entries[0].ToStringAsync(Encoding.UTF8));
199+
Equal(entry2.Content, await entries[0].ToStringAsync(Encoding.UTF8, token: token));
200200
return Missing.Value;
201201
};
202202

0 commit comments

Comments
 (0)