Skip to content

Commit 2cc5081

Browse files
Alex PeckCopilot
andcommitted
Fix weighted soak test signature stripped by dotnet format
The iteration parameter was unused, so the dotnet format analyzer pass (IDE0060) removed it, causing xUnit to fail binding the [Repeat]-provided argument. Use the parameter so the test binds and runs the full workload. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 3a51330 commit 2cc5081

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

BitFaster.Caching.UnitTests/Lfu/ConcurrentLfuSoakTests.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,10 @@ await Threaded.Run(threads, () =>
256256

257257
[Theory]
258258
[Repeat(soakIterations)]
259-
public async Task WhenConcurrentWeightedGetUpdateRemoveCacheEndsInConsistentState()
259+
public async Task WhenConcurrentWeightedGetUpdateRemoveCacheEndsInConsistentState(int iteration)
260260
{
261+
this.output.WriteLine($"Weighted soak iteration {iteration}.");
262+
261263
var cache = new ConcurrentLfuBuilder<int, string>()
262264
.WithConcurrencyLevel(threads)
263265
.WithCapacity(9)

0 commit comments

Comments
 (0)