Skip to content

Conversation

cachemeifyoucan
Copy link
Contributor

Step 1 to fix #1431

  • Remove unnecessary try!: if in the throwable context, just use try. There are two remaining in concurrentPerform that would be good to be removed in the future, the rest are in setup/generic tests, that are probably file.
  • Fix a nil unwrap when using --parallel
Avoid `try!` that can crash the tests unnecessarily in a throwable context that can just handle the error.
Testcase can be deinit without calling `setUp` in case of something fatal happens. This will cause unwrapping nil during tests if running tests with `--parallel`.
@cachemeifyoucan
Copy link
Contributor Author

@swift-ci please test

@cachemeifyoucan cachemeifyoucan merged commit 03f3539 into swiftlang:main Sep 6, 2023
@cachemeifyoucan cachemeifyoucan deleted the eng/swift-driver-tests-fatal-errors branch September 6, 2023 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants