mirror of https://github.com/usbharu/Hideout.git
test: テスト実行前にMongodbをクリアするように
This commit is contained in:
parent
4ed61efe76
commit
a3518ddf53
|
@ -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(),
|
||||||
|
|
Loading…
Reference in New Issue