| 914 | data("CSV", |
| 915 | ["csv", "text/csv"]) |
| 916 | def test_http(data) |
| 917 | extension, content_type = data |
| 918 | output = Arrow::ResizableBuffer.new(1024) |
| 919 | @table.save(output, format: extension.to_sym) |
| 920 | path = "/data.#{extension}" |
| 921 | start_web_server(path, |
| 922 | output.data.to_s, |
| 923 | content_type) do |port| |
| 924 | input = URI("http://127.0.0.1:#{port}#{path}") |
| 925 | loaded_table = Arrow::Table.load(input, schema: @table.schema) |
| 926 | assert_equal(@table.to_s, loaded_table.to_s) |
| 927 | end |
| 928 | end |
| 929 | end |
| 930 | |
| 931 | sub_test_case("GC") do |