Make the SwiftPM integration tests more idiomatic (#157971)

I recommend reviewing with [whitespace changes disabled](https://github.com/flutter/flutter/pull/157971/files?diff=split&w=1).

Changes:

1. Replaces `expect(string.contains('foo'), isTrue)` with `expect(string, contains('foo'))`
2. Replaces `try/finally` with `addTearDown`

Follow-up to: https://github.com/flutter/flutter/pull/157482#discussion_r1813939657
This commit is contained in:
Loïc Sharma 2024-11-01 11:15:15 -07:00 committed by GitHub
parent f86b777215
commit 49ccfb7302
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194