Skip to content

Commit 75ed7d2

Browse files
committed
Await file operations when copying test data
Both `copyNoWorkspaceData` and `copyCliIntegrationData` return promises. Since file copy-ing is quite fast at the moment, this hasn't been a problem, but it might become a problem in the future if we start copying larger files. Let's wait for the operations to finish.
1 parent abfd1e2 commit 75ed7d2

File tree

1 file changed

+4
-3
lines changed
  • extensions/ql-vscode/gulpfile.ts

1 file changed

+4
-3
lines changed

extensions/ql-vscode/gulpfile.ts/tests.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import * as gulp from 'gulp';
22

33
export function copyTestData() {
4-
copyNoWorkspaceData();
5-
copyCliIntegrationData();
6-
return Promise.resolve();
4+
return Promise.all([
5+
copyNoWorkspaceData(),
6+
copyCliIntegrationData()
7+
]);
78
}
89

910
export function watchTestData() {

0 commit comments

Comments
 (0)