Skip to content

Commit 9cbbd51

Browse files
committed
flush on connect of autobahn client
1 parent d8864c2 commit 9cbbd51

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

test/fixtures/autobahn_client.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ defmodule AutobahnClient do
6161
end
6262

6363
def connect(resource) do
64+
:ok = flush()
6465
host = System.get_env("FUZZINGSERVER_HOST") || "localhost"
6566
{:ok, conn} = Mint.HTTP.connect(:http, host, 9001)
6667
req_headers = Mint.WebSocket.build_request_headers()

test/mint/web_socket/autobahn_test.exs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,13 @@ defmodule Mint.WebSocket.AutobahnTest do
1616
describe "Autobahn|Testsuite" do
1717
for case_number <- Range.new(1, AutobahnClient.get_case_count()) do
1818
info = AutobahnClient.get_case_info(case_number)
19-
:ok = AutobahnClient.flush()
2019

2120
if String.starts_with?(info.id, "9.") do
2221
@tag :performance
2322
end
2423

2524
test inspect("case #{info.id} (##{case_number}): #{info.description}", printable_limit: 200) do
2625
assert AutobahnClient.run_case(unquote(case_number)) == :ok
27-
:ok = AutobahnClient.flush()
2826

2927
assert AutobahnClient.get_case_status(unquote(case_number)) in ~w[OK NON-STRICT INFORMATIONAL]
3028
end

0 commit comments

Comments
 (0)