test: テスト実行前にMongodbをクリアするように

This commit is contained in:
usbharu 2024-01-31 15:05:00 +09:00
parent 4ed61efe76
commit a3518ddf53
1 changed files with 3 additions and 0 deletions

View File

@ -165,6 +165,9 @@ class MongodbNotificationsApiPaginationTest {
fun setupMongodb(
@Autowired mongoMastodonNotificationRepository: MongoMastodonNotificationRepository
) {
mongoMastodonNotificationRepository.deleteAll()
val notifications = (1..65).map {
MastodonNotification(
it.toLong(),