Skip to content

Commit 17714b3

Browse files
committed
test(protocol): Upgrade tests for v0.5 of the protocol.
1 parent 8fce8df commit 17714b3

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

test/msgpackserializer.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ using MsgPack
2626

2727
msg = Protocols.Error(
2828
1, ErrorException("Foo"), [
29-
(file = "foo.jl", line = 1, func = "foo()"),
30-
(file = "bar.jl", line = 2, func = "bar()"),
29+
(file = "foo.jl", line = 1, func = "foo()", parentmodule="Main"),
30+
(file = "bar.jl", line = 2, func = "bar()", parentmodule="Main"),
3131
],
3232
)
33-
expected_array = [Protocols.RESPONSE, 0x01, ["ErrorException", "ErrorException: Foo", [("foo.jl", 1, "foo()"), ("bar.jl", 2, "bar()")]], nothing]
33+
expected_array = [Protocols.RESPONSE, 0x01, ["ErrorException", "ErrorException: Foo", [("foo.jl", 1, "foo()", "Main"), ("bar.jl", 2, "bar()", "Main")]], nothing]
3434
@testset "Error" test_msg(msg, expected_array)
3535

3636
msg = Protocols.Result(1, 1, "foo")

test/protocol.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ using REPLSmuggler.Protocols
4343
Protocols.serialize(
4444
protocol, Protocols.Error(
4545
1, ErrorException("Foo"), [
46-
(file = "foo.jl", line = 1, func = "foo()"),
47-
(file = "bar.jl", line = 2, func = "bar()"),
46+
(file = "foo.jl", line = 1, func = "foo()", parentmodule="Main"),
47+
(file = "bar.jl", line = 2, func = "bar()", parentmodule="Main"),
4848
],
4949
),
5050
)
@@ -57,8 +57,8 @@ using REPLSmuggler.Protocols
5757
(
5858
"ErrorException", "ErrorException: Foo",
5959
[
60-
("foo.jl", 1, "foo()"),
61-
("bar.jl", 2, "bar()"),
60+
("foo.jl", 1, "foo()", "Main"),
61+
("bar.jl", 2, "bar()", "Main"),
6262
],
6363
),
6464
nothing,

0 commit comments

Comments
 (0)