Skip to content

Commit

Permalink
improve CI-time by commenting out the top-level testset
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC committed Apr 22, 2024
1 parent 8983f1f commit 8db84d7
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ end
# * Similar, we manually set the buffer size to be smaller than the default to
# force more buffer refills.

@testset "BufferedInputStream" begin
# Uncommenting top-level testset makes the tests take ~100x longer
# @testset "BufferedInputStream" begin
@testset "read" begin
data = rand(UInt8, 1000000)
stream = BufferedInputStream(IOBuffer(data), 1024)
Expand Down Expand Up @@ -431,7 +432,7 @@ end
@test readlines(s; keep) == readlines(IOBuffer(data); keep)
end
end

@testset "read/peek/skipchars" begin
ascii = randstring(100)
unicode = randstring("xα∆🐨", 100) * 'β' # mix of 1/2/3/4-byte chars
Expand All @@ -455,10 +456,10 @@ end
@test read(io, Char) == (isnothing(linecomment) ? '#' : '😄')
end
end
end
# end


@testset "BufferedOutputStream" begin
# @testset "BufferedOutputStream" begin
@testset "write" begin
data = rand(UInt8, 1000000)
stream1 = BufferedOutputStream()
Expand Down Expand Up @@ -596,4 +597,4 @@ end
@test occursin(r"^BufferedOutputStream{.*}\(<closed>\)$", string(stream))
@test_throws ArgumentError BufferedOutputStream(IOBuffer(), 0)
end
end
# end

0 comments on commit 8db84d7

Please sign in to comment.