Skip to content

Commit 593e0c0

Browse files
committed
Adjust AddressValidatorTests to handle remote failure with null error
1 parent 7e9c1ea commit 593e0c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WooCommerce/WooCommerceTests/ViewRelated/Orders/Order Details/Shipping Labels/AddressValidatorTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ class AddressValidatorTests: XCTestCase {
133133

134134
switch failure {
135135
case .remote(let error):
136-
XCTAssertTrue(error.addressError!.isNotEmpty)
136+
XCTAssertTrue(error!.addressError!.isNotEmpty)
137137
break
138138
default:
139139
XCTFail("A remote failure was expected")

0 commit comments

Comments
 (0)