File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 3131 " JULIA_SSL_NO_VERIFY_HOSTS" => nothing ,
3232 " JULIA_ALWAYS_VERIFY_HOSTS" => nothing ]
3333
34- withenv (env ... ) do
35- @compile_workload begin
34+ @compile_workload begin
35+ withenv (env ... ) do
3636 HTTP. get (url);
3737 end
3838 end
Original file line number Diff line number Diff line change 1616
1717# Important that we can parse a string into a `HTTPVersion` without allocations,
1818# as we do this for every request/response. Similarly if we then want a `VersionNumber`.
19- @test @allocated (HTTPVersion (" 1.1" )) == 0
20- @test @allocated (VersionNumber (HTTPVersion (" 1.1" ))) == 0
19+ function test_allocated ()
20+ @test @allocated (HTTPVersion (" 1.1" )) == 0
21+ @test @allocated (VersionNumber (HTTPVersion (" 1.1" ))) == 0
22+ end
23+ test_allocated ()
2124
2225# Test comparisons with `VersionNumber`s
2326req = HTTP. Request (" GET" , " http://httpbin.org/anything" )
You can’t perform that action at this time.
0 commit comments