File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1515'use strict' ;
1616
1717const assert = require ( 'assert' ) ;
18- const { exec , spawn} = require ( 'child_process' ) ;
18+ const { execSync , spawn} = require ( 'child_process' ) ;
1919const { Storage} = require ( '@google-cloud/storage' ) ;
2020const sinon = require ( 'sinon' ) ;
2121const { 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
6262describe ( 'functions/imagemagick tests' , ( ) => {
6363 before ( async ( ) => {
Original file line number Diff line number Diff line change 1515'use strict' ;
1616
1717const assert = require ( 'assert' ) ;
18- const { exec } = require ( 'child_process' ) ;
18+ const { execSync } = require ( 'child_process' ) ;
1919const { Storage} = require ( '@google-cloud/storage' ) ;
2020const sinon = require ( 'sinon' ) ;
2121const 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
4242describe ( 'functions/imagemagick tests' , ( ) => {
4343 before ( async ( ) => {
You can’t perform that action at this time.
0 commit comments