Skip to content

Commit 76cbccd

Browse files
Copilotxperiandri
andauthored
Rename worker readiness gate in concurrent cache test
Agent-Logs-Url: https://github.com/fsprojects/FSharp.Data.GraphQL/sessions/95956635-01ea-45da-a2fc-e89c2faafbbd Co-authored-by: xperiandri <2365592+xperiandri@users.noreply.github.com>
1 parent f76de93 commit 76cbccd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/FSharp.Data.GraphQL.Tests/ValidationCacheTests.fs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,18 +133,18 @@ let ``MemoryValidationResultCache handles concurrent access`` () : Task = task {
133133

134134
// Call cache from multiple threads simultaneously
135135
let workerCount = 10
136-
use ready = CountdownEvent workerCount
136+
use workersReady = CountdownEvent workerCount
137137
use startGate = new ManualResetEventSlim false
138138

139139
let workers =
140140
[| 1..workerCount |]
141141
|> Seq.map (fun _ ->
142142
Task.Run (fun () ->
143-
ready.Signal () |> ignore
143+
workersReady.Signal () |> ignore
144144
startGate.Wait ()
145145
cache.GetOrAdd producer key))
146146

147-
ready.Wait ()
147+
workersReady.Wait ()
148148
startGate.Set ()
149149
let! results = workers |> Task.WhenAll
150150

0 commit comments

Comments
 (0)