Skip to content

Commit b89ae23

Browse files
committed
get case info in an async task process
if I understand Tasks correctly, this will spawn a process to go get the case info and so we won't have to flush or clutter the compiler process' mailbox
1 parent 9cbbd51 commit b89ae23

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/mint/web_socket/autobahn_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ defmodule Mint.WebSocket.AutobahnTest do
1515

1616
describe "Autobahn|Testsuite" do
1717
for case_number <- Range.new(1, AutobahnClient.get_case_count()) do
18-
info = AutobahnClient.get_case_info(case_number)
18+
info = Task.await(Task.async(fn -> AutobahnClient.get_case_info(case_number) end))
1919

2020
if String.starts_with?(info.id, "9.") do
2121
@tag :performance

0 commit comments

Comments
 (0)