mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-01 13:03:33 -06:00
add errnorows test
This commit is contained in:
parent
6194af4120
commit
0db3fe3ba6
1 changed files with 11 additions and 0 deletions
|
|
@ -143,6 +143,17 @@ func (suite *ApplicationTestSuite) TestDeleteTokensByClientID() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (suite *ApplicationTestSuite) TestDeleteTokensByUnknownClientID() {
|
||||||
|
// Should not return ErrNoRows even though
|
||||||
|
// the client with given ID doesn't exist.
|
||||||
|
if err := suite.state.DB.DeleteTokensByClientID(
|
||||||
|
context.Background(),
|
||||||
|
"01JPJ4NCGH6GHY7ZVYBHNP55XS",
|
||||||
|
); err != nil {
|
||||||
|
suite.FailNow(err.Error())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func TestApplicationTestSuite(t *testing.T) {
|
func TestApplicationTestSuite(t *testing.T) {
|
||||||
suite.Run(t, new(ApplicationTestSuite))
|
suite.Run(t, new(ApplicationTestSuite))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue