mirror of
https://github.com/signaller-matrix/signaller.git
synced 2024-11-22 02:12:20 +00:00
Add test GetRoomByID with wrong id
This commit is contained in:
parent
cf9fade28e
commit
490bd56e2d
@ -108,4 +108,8 @@ func TestGetRoomByID(t *testing.T) {
|
|||||||
assert.Nil(t, err)
|
assert.Nil(t, err)
|
||||||
assert.NotNil(t, room)
|
assert.NotNil(t, room)
|
||||||
assert.Equal(t, room.ID(), backend.GetRoomByID(room.ID()).ID())
|
assert.Equal(t, room.ID(), backend.GetRoomByID(room.ID()).ID())
|
||||||
|
|
||||||
|
// Get room with wrong id
|
||||||
|
room = backend.GetRoomByID("worng id")
|
||||||
|
assert.Nil(t, room)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user