Skip to content

Commit efab393

Browse files
committed
Relax as_json test pattern.
1 parent ff082e9 commit efab393

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/async/http/protocol/http2.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
response = client.get("/")
1818
connection = response.connection
1919

20-
expect(connection.as_json).to be == "#<Async::HTTP::Protocol::HTTP2::Client 1 requests, 0 active streams>"
20+
expect(connection.as_json).to be =~ /#<Async::HTTP::Protocol::HTTP2::Client 1 requests, \d+ active streams>/
2121
ensure
2222
response&.close
2323
end

0 commit comments

Comments
 (0)