Skip to content

Commit

Permalink
Merge pull request #115 from muzzammilshahid/fix-welcome-interop
Browse files Browse the repository at this point in the history
Adapt welcome interoperability test with latest wampprotocli
  • Loading branch information
muzzammilshahid authored Jul 4, 2024
2 parents e43c949 + 324bac2 commit c33bd7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/interoptests/messages/welcome_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ void main() {
test("JSONSerializer", () async {
var msg = Welcome(1, {"callee": true}, "foo", "bar", "anonymous");
var command =
'''message welcome ${msg.sessionID} -d authmethod=${msg.authMethod} -d authid=${msg.authID} -d authrole=${msg.authRole} -d roles={"callee":true} --serializer json''';
"message welcome ${msg.sessionID} --authmethod=${msg.authMethod} --authid=${msg.authID} --authrole=${msg.authRole} --roles callee=true --serializer json";

var output = await runCommand(command);

Expand All @@ -35,7 +35,7 @@ void main() {
test("CBORSerializer", () async {
var msg = Welcome(1, {"callee": true}, "foo", "bar", "anonymous");
var command =
'''message welcome ${msg.sessionID} -d authmethod=${msg.authMethod} -d authid=${msg.authID} -d authrole=${msg.authRole} -d roles={"callee":true} --serializer cbor --output hex''';
"message welcome ${msg.sessionID} --authmethod=${msg.authMethod} --authid=${msg.authID} --authrole=${msg.authRole} --roles callee=true --serializer cbor --output hex";

var output = await runCommand(command);
var outputBytes = Base16Encoder.instance.decode(output.trim());
Expand All @@ -48,7 +48,7 @@ void main() {
test("MsgPackSerializer", () async {
var msg = Welcome(1, {"callee": true}, "foo", "bar", "anonymous");
var command =
'''message welcome ${msg.sessionID} -d authmethod=${msg.authMethod} -d authid=${msg.authID} -d authrole=${msg.authRole} -d roles={"callee":true} --serializer msgpack --output hex''';
"message welcome ${msg.sessionID} --authmethod=${msg.authMethod} --authid=${msg.authID} --authrole=${msg.authRole} --roles callee=true --serializer msgpack --output hex";

var output = await runCommand(command);
var outputBytes = Base16Encoder.instance.decode(output.trim());
Expand Down

0 comments on commit c33bd7a

Please sign in to comment.