mirror of
https://github.com/usbharu/Hideout.git
synced 2026-09-26 06:51:09 +00:00
test: テスト実行前にMongodbをクリアするように
This commit is contained in:
@@ -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(),
|
||||||
|
|||||||
Reference in New Issue
Block a user