Skip to content

Commit

Permalink
fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
belleklaviyo committed Dec 19, 2024
1 parent 8659c9b commit b7c0c2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Tests/KlaviyoSwiftTests/KlaviyoSDKTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ class KlaviyoSDKTests: XCTestCase {
// MARK: test unhandle push notification

func testUnhandlePushNotification() throws {
let expectation = setupActionAssertion(expectedAction: .syncBadgeCount)
let callback = XCTestExpectation(description: "callback is not made")
callback.isInverted = true
let data: [AnyHashable: Any] = [
Expand All @@ -161,7 +162,7 @@ class KlaviyoSDKTests: XCTestCase {
callback.fulfill()
}

wait(for: [callback], timeout: 1.0)
wait(for: [callback, expectation], timeout: 1.0)
XCTAssertFalse(handled)
}

Expand Down

0 comments on commit b7c0c2a

Please sign in to comment.