Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
franklevasseur committed Mar 24, 2024
1 parent 81c49b2 commit de48fc1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/inject/test/serve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@ const getMessagingClient = async () => {
}
}

const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms))

const startServer = async () => {
const app = express()
await sleep(2000)
const client = await getMessagingClient()

app.get<MessagingConfig>('/getConfig', async (req, res) => {
Expand Down
2 changes: 1 addition & 1 deletion test/cypress/webchat.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe('Webchat', () => {
cy.wait(400)
checkLifecycleEvent(0, 'CONFIG.SET')
checkLifecycleEvent(1, 'USER.CONNECTED')
checkLifecycleEvent(2, 'USER.CONNECTED')
checkLifecycleEvent(2, 'LIFECYCLE.LOADED')
// we don't really care about the order of the events between
// checkLifecycleEvent(7, 'LIFECYCLE.READY')
})
Expand Down

0 comments on commit de48fc1

Please sign in to comment.