AssertClientNotExist asserts that the client does not exist.
(id uint)
| 199 | |
| 200 | // AssertClientNotExist asserts that the client does not exist. |
| 201 | func (d *Database) AssertClientNotExist(id uint) { |
| 202 | if client, err := d.GetClientByID(id); assert.NoError(d.t, err) { |
| 203 | assert.True(d.t, client == nil, "client %d must not exist", id) |
| 204 | } |
| 205 | } |
| 206 | |
| 207 | // AssertMessageNotExist asserts that the messages does not exist. |
| 208 | func (d *Database) AssertMessageNotExist(ids ...uint) { |