Commit 0eb682a
committed
chore(cli-repl): fix flaky autocompletion test MONGOSH-1960
Our current autocomplete logic does not always wait for the collection
or database name caches to be filled, in case it takes longer than 200ms
to do so. By ensuring that the caches are filled before we run the test,
we get consistent results.1 parent b622534 commit 0eb682a
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2414 | 2414 | | |
2415 | 2415 | | |
2416 | 2416 | | |
| 2417 | + | |
| 2418 | + | |
| 2419 | + | |
2417 | 2420 | | |
2418 | 2421 | | |
2419 | 2422 | | |
| |||
2429 | 2432 | | |
2430 | 2433 | | |
2431 | 2434 | | |
| 2435 | + | |
2432 | 2436 | | |
2433 | 2437 | | |
2434 | 2438 | | |
2435 | 2439 | | |
2436 | 2440 | | |
2437 | | - | |
| 2441 | + | |
2438 | 2442 | | |
2439 | 2443 | | |
2440 | 2444 | | |
| |||
0 commit comments