File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
tests/DatatypeChannels.ASB.Tests Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -156,13 +156,13 @@ let tests =
156
156
let n = 200
157
157
for i in 1 .. n do
158
158
do ! publisher |> Publisher.publish $" test-payload-{i}"
159
- let! xs = // also test parallel consumption
160
- seq { for _ in 1 .. 2 -> seq { for _ in 1 .. n/ 2 -> TimeSpan.FromSeconds 1 . |> consumer.Get}}
159
+ let! xs = // also test parallel consumption, needs longer timeout to fetch each message
160
+ seq { for _ in 1 .. 10 -> seq { for _ in 1 .. n/ 10 -> TimeSpan.FromSeconds 3 . |> consumer.Get }}
161
161
|> Seq.map Task.WhenAll
162
162
|> Task.WhenAll
163
163
|> Task.map ( Array.collect id)
164
164
|> Task.map ( Array.choose id)
165
- xs |> Seq.distinct |> Seq.length =! n
165
+ ( xs.Length , xs.Length ) =! ( xs |> Seq.distinct |> Seq.length, n )
166
166
do ! Task.Delay ( TimeSpan.FromMinutes 7. )
167
167
for received in xs do
168
168
do ! consumer.Ack received.Id
You can’t perform that action at this time.
0 commit comments