From 1b2f872af9938fbc76bd450d7c378f6a4bd902f8 Mon Sep 17 00:00:00 2001 From: Jeffrey Rennie Date: Thu, 28 Oct 2021 08:47:27 -0700 Subject: [PATCH] test: address flaky test (#573) Not really sure why the test is flaky. Maybe without the await statement, the process exist before the console is written to. Fixies #565 --- packages/google-cloud-asset/samples/quickstart.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-cloud-asset/samples/quickstart.js b/packages/google-cloud-asset/samples/quickstart.js index 11bc75706db2..ef8d3cb17d20 100644 --- a/packages/google-cloud-asset/samples/quickstart.js +++ b/packages/google-cloud-asset/samples/quickstart.js @@ -49,7 +49,7 @@ async function main(assetNames) { console.log(util.inspect(result, {depth: null})); // [END asset_quickstart] } - quickstart(); + await quickstart(); } main(...process.argv.slice(2));