Skip to content

Commit 1380575

Browse files
authored
Fix execution window test (#3349)
1 parent ebfe4cb commit 1380575

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Airship/AirshipAutomation/Tests/ExecutionWindowTest.swift

+4-3
Original file line numberDiff line numberDiff line change
@@ -795,16 +795,17 @@ final class ExectutionWindowTest: XCTestCase {
795795

796796
func testMonthlyNextYear() throws {
797797
// Feb 15
798-
var date = calendar.date(bySetting: .day, value: 15, of: referenceDate)!
799-
date = calendar.date(bySetting: .month, value: 2, of: date)!
798+
var date = calendar.date(bySetting: .month, value: 2, of: referenceDate)!
799+
date = calendar.date(bySetting: .day, value: 15, of: date)!
800+
800801

801802
let window = try ExecutionWindow(
802803
include: [
803804
.monthly(months: [1], daysOfMonth: [14])
804805
]
805806
)
806807

807-
XCTAssertEqual(windowAvailibility(window, date: date), .retry(348.days))
808+
XCTAssertEqual(windowAvailibility(window, date: date), .retry(334.days))
808809
}
809810

810811
func testIncludeMonthlyWithTimeZone() throws {

0 commit comments

Comments
 (0)