@@ -25,18 +25,18 @@ function test(uri)
2525 @test neworder. id == 5
2626
2727 @info (" StoreApi - get_order_by_id" )
28- @test_throws OpenAPI. ValidationException get_order_by_id (api, 0 )
29- order = get_order_by_id (api, 5 )
28+ @test_throws OpenAPI. ValidationException get_order_by_id (api, Int64 ( 0 ) )
29+ order = get_order_by_id (api, Int64 ( 5 ) )
3030 @test isa (order, Order)
3131 @test order. id == 5
3232 @test isa (order. shipDate, ZonedDateTime)
3333
3434 @info (" StoreApi - get_order_by_id (async)" )
3535 response_channel = Channel {Order} (1 )
36- @test_throws OpenAPI. ValidationException get_order_by_id (api, response_channel, 0 )
36+ @test_throws OpenAPI. ValidationException get_order_by_id (api, response_channel, Int64 ( 0 ) )
3737 @sync begin
3838 @async begin
39- resp = get_order_by_id (api, response_channel, 5 )
39+ resp = get_order_by_id (api, response_channel, Int64 ( 5 ) )
4040 @test (200 <= resp. status <= 206 )
4141 end
4242 @async begin
@@ -49,11 +49,11 @@ function test(uri)
4949 # a closed channel is equivalent of cancellation of the call,
5050 # no error should be thrown, but response can be nothing if call was interrupted immediately
5151 @test ! isopen (response_channel)
52- resp = get_order_by_id (api, response_channel, 5 )
52+ resp = get_order_by_id (api, response_channel, Int64 ( 5 ) )
5353 @test (resp === nothing ) || (200 <= resp. status <= 206 )
5454
5555 @info (" StoreApi - delete_order" )
56- @test delete_order (api, 5 ) === nothing
56+ @test delete_order (api, Int64 ( 5 ) ) === nothing
5757
5858 nothing
5959end
0 commit comments