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 31
31
" JULIA_SSL_NO_VERIFY_HOSTS" => nothing ,
32
32
" JULIA_ALWAYS_VERIFY_HOSTS" => nothing ]
33
33
34
- withenv (env ... ) do
35
- @compile_workload begin
34
+ @compile_workload begin
35
+ withenv (env ... ) do
36
36
HTTP. get (url);
37
37
end
38
38
end
Original file line number Diff line number Diff line change 16
16
17
17
# Important that we can parse a string into a `HTTPVersion` without allocations,
18
18
# 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 ()
21
24
22
25
# Test comparisons with `VersionNumber`s
23
26
req = HTTP. Request (" GET" , " http://httpbin.org/anything" )
You can’t perform that action at this time.
0 commit comments