Retry terminal font tests

They seem to hang Electron (or something) randomly only in GH actions.

Fixes #139307
This commit is contained in:
Daniel Imms 2021-12-16 11:32:16 -08:00
parent ae8aeb653d
commit 382278ea05

View file

@ -15,9 +15,14 @@ class TestTerminalConfigHelper extends TerminalConfigHelper {
}
}
suite('Workbench - TerminalConfigHelper', () => {
suite('Workbench - TerminalConfigHelper', function () {
let fixture: HTMLElement;
// This suite has retries setup because the font-related tests flake only on GitHub actions, not
// ADO. It seems Electron hangs for some reason only on GH actions, so the two options are to
// retry or remove the test outright (which would drop coverage).
this.retries(3);
setup(() => {
fixture = document.body;
});