Skip to content

Commit

Permalink
chore(test): fix race condition from windows platform (#2254)
Browse files Browse the repository at this point in the history
Signed-off-by: Vladimir Lazar <[email protected]>
  • Loading branch information
cbr7 authored Dec 12, 2024
1 parent e382c1f commit 1b8b482
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/playwright/src/ai-lab-extension.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,13 @@ test.describe.serial(`AI Lab extension installation and verification`, { tag: '@
test(`Make GET request to the model service for ${modelName}`, async ({ request }) => {
const port = await modelServiceDetailsPage.getInferenceServerPort();
const url = `http://localhost:${port}`;
const response = await request.get(url);
playExpect(response.ok()).toBeTruthy();
playExpect(await response.text()).toContain('hello');

// eslint-disable-next-line sonarjs/no-nested-functions
await playExpect(async () => {
const response = await request.get(url);
playExpect(response.ok()).toBeTruthy();
playExpect(await response.text()).toContain('hello');
}).toPass({ timeout: 30_000 });
});

test(`Delete model service for ${modelName}`, async () => {
Expand Down

0 comments on commit 1b8b482

Please sign in to comment.