Skip to content

Commit 7dc50b3

Browse files
authored
Fix definition of pebibyte in file tests (#59667)
Reported in #59664.
1 parent 0551b2f commit 7dc50b3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/file.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2153,16 +2153,16 @@ Base.joinpath(x::URI50890) = URI50890(x.f)
21532153
end
21542154

21552155
@testset "diskstat() works" begin
2156-
# Sanity check assuming disk is smaller than 32PB
2157-
PB = Int64(2)^44
2156+
# Sanity check assuming disk is smaller than 32PiB
2157+
PiB = Int64(2)^50
21582158

21592159
dstat = diskstat()
2160-
@test dstat.total < 32PB
2160+
@test dstat.total < 32PiB
21612161
@test dstat.used + dstat.available == dstat.total
21622162
@test occursin(r"^DiskStat\(total=\d+, used=\d+, available=\d+\)$", sprint(show, dstat))
21632163
# Test diskstat(::AbstractString)
21642164
dstat = diskstat(pwd())
2165-
@test dstat.total < 32PB
2165+
@test dstat.total < 32PiB
21662166
@test dstat.used + dstat.available == dstat.total
21672167
end
21682168

0 commit comments

Comments
 (0)