Skip to content

Commit

Permalink
Fix windows test
Browse files Browse the repository at this point in the history
  • Loading branch information
Or-Geva committed Nov 28, 2023
1 parent d784260 commit 9df908b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/tests/scanUtils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ describe('ScanUtils', () => {
const randomFileName: string = `file_${Date.now()}.txt`;

// Define the command that waits for 2 seconds and writes a file
const command: string = isWindows() ? `sleep 2 | echo > ${randomFileName}` : `sleep 2 && touch ${randomFileName}`;
const command: string = isWindows() ? `ping 127.0.0.1 -n 2 & echo > ${randomFileName}` : `sleep 2 && touch ${randomFileName}`;

try {
await ScanUtils.executeCmdAsync(command, cancelSignal, __dirname, undefined);
Expand Down

0 comments on commit 9df908b

Please sign in to comment.