testSendFromClientSessionWithDelayedLeaveAndCoordinatorCrash()
throws Exception
{
String user = "user";
String channelName = "test";
SgsTestNode coordinatorNode = addNode();
// Create channel with coordinator on server node.
createChannel(channelName, null, coordinatorNode);
SgsTestNode userNode = addNode();
DummyClient client = new DummyClient(user);
client.connect(userNode.getAppPort()).login();
try {
joinUsers(channelName, user);
client.assertJoinedChannel(channelName);
client.sendChannelMessage(channelName, 0);
checkChannelMessagesReceived(client, channelName, 1);