mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-26 21:41:48 +02:00
tests(e2e): fix e2e failures on Linux and Windows (#3642)
This commit is contained in:
@@ -73,6 +73,7 @@ describePlugin('websocket', () => {
|
||||
const message = await new Promise<Message>((resolve, reject) => {
|
||||
setTimeout(() => reject(new Error('headers not received')), 5000)
|
||||
ws.addListener(resolve)
|
||||
ws.send('headers').catch(reject)
|
||||
})
|
||||
await ws.disconnect()
|
||||
return JSON.parse(message.data as string) as Record<string, string>
|
||||
|
||||
Reference in New Issue
Block a user