AssertClientExist asserts that the client does exist.
(id uint)
| 229 | |
| 230 | // AssertClientExist asserts that the client does exist. |
| 231 | func (d *Database) AssertClientExist(id uint) { |
| 232 | if client, err := d.GetClientByID(id); assert.NoError(d.t, err) { |
| 233 | assert.False(d.t, client == nil, "client %d must exist", id) |
| 234 | } |
| 235 | } |
| 236 | |
| 237 | // AssertMessageExist asserts that the message does exist. |
| 238 | func (d *Database) AssertMessageExist(id uint) { |