Skip to content

Commit 9892eb8

Browse files
committed
[Test] Improve 92014dd.
1 parent 92014dd commit 9892eb8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SwiftTaskTests/SwiftTaskTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -921,8 +921,8 @@ class SwiftTaskTests: _TestCase
921921

922922
var expect = self.expectationWithDescription(__FUNCTION__)
923923
var maxTryCount = 3
924-
var actualTryCount = 0
925924
let fulfilledTryCount = 2
925+
var actualTryCount = 0
926926

927927
Task<Float, String, ErrorString> { progress, fulfill, reject, configure in
928928

@@ -940,7 +940,7 @@ class SwiftTaskTests: _TestCase
940940

941941
}.try(maxTryCount).failure { errorInfo -> String in
942942

943-
XCTFail("Should never reach here because `task.try(\(maxTryCount))` will be fulfilled on try[\(maxTryCount)] even though try[1...\(maxTryCount-1)] will be rejected.")
943+
XCTFail("Should never reach here because `task.try(\(maxTryCount))` will be fulfilled on try[\(fulfilledTryCount)] even though try[1...\(fulfilledTryCount-1)] will be rejected.")
944944

945945
return "DUMMY"
946946

0 commit comments

Comments
 (0)