Skip to content

Commit 1a6ab73

Browse files
committed
wait for completion
1 parent 815f025 commit 1a6ab73

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

functions/imagemagick/test/index.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
'use strict';
1616

1717
const assert = require('assert');
18-
const {exec, spawn} = require('child_process');
18+
const {execSync, spawn} = require('child_process');
1919
const {Storage} = require('@google-cloud/storage');
2020
const sinon = require('sinon');
2121
const {request} = require('gaxios');
@@ -57,7 +57,7 @@ async function startFF(port) {
5757
// ImageMagick is available by default in Cloud Run Functions environments
5858
// https://cloud.google.com/functions/1stgendocs/tutorials/imagemagick-1st-gen.md#importing_dependencies
5959
// Manually install it for testing only.
60-
exec('sudo apt-get install imagemagick -y');
60+
execSync('sudo apt-get install imagemagick -y');
6161

6262
describe('functions/imagemagick tests', () => {
6363
before(async () => {

functions/v2/imagemagick/test/integration.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
'use strict';
1616

1717
const assert = require('assert');
18-
const {exec} = require('child_process');
18+
const {execSync} = require('child_process');
1919
const {Storage} = require('@google-cloud/storage');
2020
const sinon = require('sinon');
2121
const supertest = require('supertest');
@@ -37,7 +37,7 @@ require('../index');
3737
// ImageMagick is available by default in Cloud Run Functions environments
3838
// https://cloud.google.com/functions/1stgendocs/tutorials/imagemagick-1st-gen.md#importing_dependencies
3939
// Manually install it for testing only.
40-
exec('sudo apt-get install imagemagick -y');
40+
execSync('sudo apt-get install imagemagick -y');
4141

4242
describe('functions/imagemagick tests', () => {
4343
before(async () => {

0 commit comments

Comments
 (0)