Skip to content

Commit 344be60

Browse files
committed
don't rely on string rep of a parametric type
1 parent 9a81327 commit 344be60

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/datasets.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,10 @@ end
8989
end
9090
# But a bad type is not okay
9191
let d = Dict(d0()..., "versions" => 0)
92-
@test_throws JuliaHub.JuliaHubError(
93-
"Invalid JSON returned by the server: `versions` of type `Int64`, expected `<: Vector`."
94-
) JuliaHub.Dataset(d)
92+
e = @test_throws JuliaHub.JuliaHubError JuliaHub.Dataset(d)
93+
@test startswith(
94+
e.value.msg, "Invalid JSON returned by the server: `versions` of type `Int64`"
95+
)
9596
end
9697
end
9798

0 commit comments

Comments
 (0)