Skip to content

Commit 9c96313

Browse files
committed
refactor: 테스트명 수정 및 기존 코드를 위한 6초 딜레이 추가
1 parent 5df3d1c commit 9c96313

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

DevLog_Unit/PushNotification/Integration/DeletePushNotificationIntegrationTests.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import Foundation
1010

1111
@Suite(.serialized)
1212
struct DeletePushNotificationIntegrationTests {
13-
@Test("푸시 알림 삭제를 되돌리면 목록에 다시 보인다")
14-
func 푸시_알림_삭제를_되돌리면_목록에_다시_보인다() async throws {
13+
@Test("푸시 알림 삭제를 되돌리면 목록에 보인다")
14+
func 푸시_알림_삭제를_되돌리면_목록에_보인다() async throws {
1515
let authSession = try await LocalFirebaseRESTSupport.shared.anonymousSignIn()
1616
let notificationId = try await LocalFirebaseRESTSupport.shared.seedPushNotification(
1717
userId: authSession.userId
@@ -41,6 +41,8 @@ struct DeletePushNotificationIntegrationTests {
4141
return visibleNotificationIds.contains(notificationId)
4242
}
4343

44+
try await Task.sleep(for: .seconds(6))
45+
4446
let visibleNotificationIds = try await LocalFirebaseRESTSupport.shared.fetchPushNotificationIDs(
4547
userId: authSession.userId
4648
)

DevLog_Unit/WebPage/Integration/DeleteWebPageIntegrationTests.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import Foundation
1010

1111
@Suite(.serialized)
1212
struct DeleteWebPageIntegrationTests {
13-
@Test("웹페이지 삭제를 되돌리면 목록에 다시 보인다")
14-
func 웹페이지_삭제를_되돌리면_목록에_다시_보인다() async throws {
13+
@Test("웹페이지 삭제를 되돌리면 목록에 보인다")
14+
func 웹페이지_삭제를_되돌리면_목록에_보인다() async throws {
1515
let authSession = try await LocalFirebaseRESTSupport.shared.anonymousSignIn()
1616
let seededWebPage = try await LocalFirebaseRESTSupport.shared.seedWebPage(
1717
userId: authSession.userId
@@ -41,6 +41,8 @@ struct DeleteWebPageIntegrationTests {
4141
return visibleWebPageURLs.contains(seededWebPage.urlString)
4242
}
4343

44+
try await Task.sleep(for: .seconds(6))
45+
4446
let visibleWebPageURLs = try await LocalFirebaseRESTSupport.shared.fetchWebPageURLs(
4547
userId: authSession.userId
4648
)

0 commit comments

Comments
 (0)