Commit 43aa41db authored by Martin's avatar Martin
Browse files

IOS-2437 - fix tests

parent adbdfc1e
......@@ -92,7 +92,11 @@ class MediaAttachmentPickerProviderViewModelTest: XCTestCase {
XCTFail("Image not found")
return
}
vm?.handleDidFinishPickingImage(url: url, image: image)
if #available(iOS 14, *) {
vm?.handleDidFinishPickingImage(url: url, image: image)
} else {
vm?.handleDidFinishPickingMedia(info: infoDict)
}
waitForExpectations(timeout: UnitTestUtils.waitTime)
}
......@@ -125,7 +129,11 @@ class MediaAttachmentPickerProviderViewModelTest: XCTestCase {
return
}
vm?.handleDidFinishPickingVideoAt(url: url)
if #available(iOS 14, *) {
vm?.handleDidFinishPickingVideoAt(url: url)
} else {
vm?.handleDidFinishPickingMedia(info: infoDict)
}
waitForExpectations(timeout: 0.5) // Async file access
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment