Add test GetRoomByID with wrong id

This commit is contained in:
nxshock 2019-07-31 21:42:43 +05:00
parent cf9fade28e
commit 490bd56e2d

View File

@ -108,4 +108,8 @@ func TestGetRoomByID(t *testing.T) {
assert.Nil(t, err)
assert.NotNil(t, room)
assert.Equal(t, room.ID(), backend.GetRoomByID(room.ID()).ID())
// Get room with wrong id
room = backend.GetRoomByID("worng id")
assert.Nil(t, room)
}