Skip to content

Commit 495b06d

Browse files
author
Thomas Taschauer
committed
fix test action
1 parent e9e4541 commit 495b06d

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

OpenDocumentReaderTests/OpenDocumentReaderTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ class OpenDocumentReaderTests: XCTestCase {
5353
translatePath.appendPathComponent("translate.html")
5454

5555
coreWrapper.translate(saveURL?.path, into: translatePath.path, at: 0, with: nil, editable: true)
56-
XCTAssert(coreWrapper.errorCode == nil)
56+
XCTAssertNil(coreWrapper.errorCode)
5757

5858
var backTranslatePath = URL(fileURLWithPath: NSTemporaryDirectory())
5959
backTranslatePath.appendPathComponent("backtranslate.html")
6060

6161
let diff = "{\"modifiedText\":{\"3\":\"This is a simple test document to demonstrate the DocumentLoadewwwwr example!\"}}"
6262

6363
coreWrapper.backTranslate(diff, into: backTranslatePath.path)
64-
XCTAssert(coreWrapper.errorCode == nil)
64+
XCTAssertNil(coreWrapper.errorCode)
6565
}
6666
}
6767
}

fastlane/Fastfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ platform :ios do
4646
run_tests(
4747
workspace: "OpenDocumentReader.xcworkspace",
4848
scheme: "ODR Full",
49-
prelaunch_simulator: true
49+
prelaunch_simulator: true,
50+
reset_simulator: true
5051
)
5152
end
5253
end

0 commit comments

Comments
 (0)