Skip to content

Commit

Permalink
=testkit better error reporting when trying to dump log but capture w…
Browse files Browse the repository at this point in the history
…as disabled
  • Loading branch information
ktoso committed Nov 15, 2022
1 parent 58d98d3 commit c30c3d0
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,11 @@ extension ClusteredActorSystemsXCTestCase {
}

return self.lock.withLock {
self._logCaptures[index]
if _logCaptures.count > index {
return self._logCaptures[index]
} else {
fatalError("Attempt to get logs but no logs captured for index \(index)!")
}
}
}

Expand Down

0 comments on commit c30c3d0

Please sign in to comment.