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

This commit is contained in:
usbharu 2024-01-31 15:05:00 +09:00
parent e6d2f49bbf
commit 8dc7a2dcfe
Signed by: usbharu
GPG Key ID: 6556747BF94EEBC8
1 changed files with 3 additions and 0 deletions

View File

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