# editor_tests: Fix for potential race loading editor languages \(\#35453\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 76a8293cc6d3acfef5b2cc73b1b0f7f45b60afe0

Requested commit: 76a8293cc6d3acfef5b2cc73b1b0f7f45b60afe0

Commit: 76a8293cc6d3acfef5b2cc73b1b0f7f45b60afe0

Tree: 7c2246382546c406c766f3e48cb8a218f9018267

Author: Peter Tripp

Committer: GitHub

## Message

````
editor_tests: Fix for potential race loading editor languages (#35453)

Fix for potential race when loading HTML and JS languages (JS is
slower). Wait for both to load before continue tests.
Observed failure on linux:
[job](https://github.com/zed-industries/zed/actions/runs/16662438526/job/47162345259)
as part of https://github.com/zed-industries/zed/pull/35436

```
    thread 'editor_tests::test_autoclose_with_embedded_language' panicked at crates/editor/src/editor_tests.rs:8724:8:
    assertion failed: `(left == right)`: unexpected buffer text

    Diff < left / right > :
     <body><>
         <script>
    <        var x = 1;<>
    >        var x = 1;<
         </script>
     </body><>
```

Inserted `<` incorrect gets paired bracket inserted `>`.
I believe because the JS language injection hasn't fully loaded.

Release Notes:

- N/A
````

## Parents

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

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