From 2539f9effc13ed7ea9de62684191ceb507037bb5 Mon Sep 17 00:00:00 2001 From: Jonathan Lui Date: Thu, 4 Apr 2019 18:33:47 -0700 Subject: [PATCH] refactor: wrap execSync with encoding: utf-8 (#196) --- cloud-tasks/test/test.samples.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cloud-tasks/test/test.samples.js b/cloud-tasks/test/test.samples.js index 49e880f940..8d3fd0f6d8 100644 --- a/cloud-tasks/test/test.samples.js +++ b/cloud-tasks/test/test.samples.js @@ -15,9 +15,11 @@ 'use strict'; const {assert} = require('chai'); -const {execSync} = require('child_process'); +const cp = require('child_process'); const uuid = require('uuid'); +const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); + const PROJECT_ID = process.env.GCLOUD_PROJECT; const queueName = `gcloud-${uuid.v4().split('-')[0]}`;