Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix server tests #11

Merged
merged 1 commit into from
Oct 8, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions server/test/com/alexitc/chat/actors/PeerActorSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class PeerActorSpec

"reject bob due to wrong secret" in {
bob.actor ! PeerActor.Command.JoinChannel(channelName, Channel.Secret("what?"), bob.peer)
bob.client.expectMsg(PeerActor.Event.CommandRejected("The secret or the channel is incorrect"))
bob.client.expectMsg(PeerActor.Event.CommandRejected("The secret or the room is incorrect"))
}

"allow bob to join" in {
Expand All @@ -59,7 +59,7 @@ class PeerActorSpec

"reject carlos due to channel being full" in {
carlos.actor ! PeerActor.Command.JoinChannel(channelName, channelSecret, carlos.peer)
carlos.client.expectMsg(PeerActor.Event.CommandRejected("The channel is full, if you need bigger channels, write us to [email protected]"))
carlos.client.expectMsg(PeerActor.Event.CommandRejected("The room is full, if you need bigger rooms, write us to [email protected]"))
}

"notify alice that bob has joined" in {
Expand Down