Skip to content

Commit d9bdec2

Browse files
committed
fix: windows tauri tests fails
1 parent f7006e4 commit d9bdec2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

test/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@
7171
return promise;
7272
}
7373
execNode(NODE_COMMANDS.GET_PORT)
74-
.then(message=>{
74+
.then(async message=>{
7575
window.nodeWSEndpoint = `ws://localhost:${message.port}/phoenixFS`;
76-
fs.setNodeWSEndpoint(`ws://localhost:${message.port}/phoenixFS`);
76+
await fs.setNodeWSEndpoint(`ws://localhost:${message.port}/phoenixFS`);
7777
window.isNodeSetup = true;
7878
});
7979
setInterval(()=>{
@@ -125,9 +125,9 @@
125125
};
126126

127127
execNode(NODE_COMMANDS.GET_PORT)
128-
.then(message => {
128+
.then(async message => {
129129
window.nodeWSEndpoint = `ws://localhost:${message.port}/phoenixFS`;
130-
fs.setNodeWSEndpoint(`ws://localhost:${message.port}/phoenixFS`);
130+
await fs.setNodeWSEndpoint(`ws://localhost:${message.port}/phoenixFS`);
131131
window.isNodeSetup = true;
132132
});
133133

0 commit comments

Comments
 (0)