From 42d9658283e4a97fbdfa9fc08f4930a7d176cb01 Mon Sep 17 00:00:00 2001 From: murgatroid99 Date: Wed, 24 Apr 2019 17:44:49 -0700 Subject: [PATCH] Fix usage of linkSync --- packages/grpc-health-check/gulpfile.ts | 5 ++++- test/gulpfile.ts | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/grpc-health-check/gulpfile.ts b/packages/grpc-health-check/gulpfile.ts index 54ac624f..c01f133d 100644 --- a/packages/grpc-health-check/gulpfile.ts +++ b/packages/grpc-health-check/gulpfile.ts @@ -34,7 +34,10 @@ const runInstall = () => execa('npm', ['install', '--unsafe-perm'], {cwd: health const install = gulp.series(cleanLinks, runInstall); -const linkAdd = () => linkSync(healthCheckDir, './node_modules/grpc', '../grpc-native-core'); +const linkAdd = (callback) => { + linkSync(healthCheckDir, './node_modules/grpc', '../grpc-native-core'); + callback(); +} const test = () => gulp.src(`${testDir}/*.js`).pipe(mocha({reporter: 'mocha-jenkins-reporter'})); diff --git a/test/gulpfile.ts b/test/gulpfile.ts index baac1474..c903675f 100644 --- a/test/gulpfile.ts +++ b/test/gulpfile.ts @@ -21,7 +21,6 @@ import * as execa from 'execa'; import * as path from 'path'; import * as del from 'del'; import * as semver from 'semver'; -import {linkSync} from '../util'; const testDir = __dirname; const apiTestDir = path.resolve(testDir, 'api');