Skip to content

Commit

Permalink
[Obs AI Assistant] Add a delay to let the data settle before running …
Browse files Browse the repository at this point in the history
…the tests to avoid any data inconsistency (#192222)
  • Loading branch information
viduni94 committed Oct 25, 2024
1 parent 9c22ec1 commit 479ebea
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export default function ApiTest({ getService }: FtrProviderContext) {
describe('when creating private and public user instructions', () => {
before(async () => {
await clearKnowledgeBase(es);
await new Promise((resolve) => setTimeout(resolve, 500));

const promises = [
{
Expand Down Expand Up @@ -87,6 +88,7 @@ export default function ApiTest({ getService }: FtrProviderContext) {
});

await Promise.all(promises);
await new Promise((resolve) => setTimeout(resolve, 500));
});

it('"editor" can retrieve their own private instructions and the public instruction', async () => {
Expand Down

0 comments on commit 479ebea

Please sign in to comment.