# Fix underspecified assertions in new tests for file reload race \(\#3353\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/8837045abbcfb386e5921a3a173fa55102679821)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 8837045abbcfb386e5921a3a173fa55102679821

Requested commit: 8837045abbcfb386e5921a3a173fa55102679821

Commit: 8837045abbcfb386e5921a3a173fa55102679821

Tree: 3825dd9798c355548fa722e5ae15a7b8a29b83b8

Author: Max Brunsfeld

Committer: GitHub

## Message

```
Fix underspecified assertions in new tests for file reload race (#3353)

I accidentally left the test assertions unnecessarily vague in
https://github.com/zed-industries/zed/pull/3348. This PR makes the
assertions constrain the behavior more specifically. I also added a
second test for a related bug that was fixed in that PR, about
performing and undoing an edit while a buffer reload is in-progress.

Release Notes:

- NA
```

## Parents

- [9d8184670afcdae77ff3b84e57c7c49b49d319fa](https://git.cafe/gitcafe/zed/commit/9d8184670afcdae77ff3b84e57c7c49b49d319fa?format=markdown)

- [55548ca61ac741458eaf0f022a79bb91a15ff346](https://git.cafe/gitcafe/zed/commit/55548ca61ac741458eaf0f022a79bb91a15ff346?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/8837045abbcfb386e5921a3a173fa55102679821?format=markdown)
