Fix test for wrapping in error zone (dart-lang/stack_trace#109)
When this test was written it had a bug - it should not pass
`when: false` because that argument makes the method ignore the
`errorZone` argument entirely. Omitting the argument allows the default
`errorZone: true` behavior. The bug in the test was masked by the fact
that `package:test` had previously run tests wrapped in a chain
capturing zone by default.
Remove the `when` argument to correct the test. Add an `onError`
argument to the `.then` call to make the test stronger and assert that
the resulting future does not complete at all - either with a value or
an error. Also add the same check that the future does not complete on
another test for error blocking.
3 files changed
tree: 853236687e7298b0fa8662ac3b8a3e1950f761f3
- pkgs/