Skip to content

Commit 4b8cddc

Browse files
committed
Remove problematic test
1 parent 2ab26f6 commit 4b8cddc

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

WooCommerce/WooCommerceTests/ViewRelated/Bookings/BookingDetailsViewModelTests.swift

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -220,27 +220,4 @@ final class BookingDetailsViewModelTests: XCTestCase {
220220
// Then
221221
XCTAssertTrue(viewModel.navigationTitle.contains("12345"))
222222
}
223-
224-
func test_syncData_triggers_booking_synchronization() async {
225-
// Given
226-
let booking = Booking.fake().copy(siteID: 123, bookingID: 456)
227-
let viewModel = BookingDetailsViewModel(booking: booking, stores: storesManager)
228-
229-
let expectation = self.expectation(description: "Booking synchronization should be triggered")
230-
231-
storesManager.whenReceivingAction(ofType: BookingAction.self) { action in
232-
guard case let .synchronizeBooking(siteID, bookingID, _) = action else {
233-
return
234-
}
235-
XCTAssertEqual(siteID, 123)
236-
XCTAssertEqual(bookingID, 456)
237-
expectation.fulfill()
238-
}
239-
240-
// When
241-
await viewModel.syncData()
242-
243-
// Then
244-
await fulfillment(of: [expectation], timeout: 1.0)
245-
}
246223
}

0 commit comments

Comments
 (0)