From e3e028cfa7aa1f611d20700ba48392b7a181759f Mon Sep 17 00:00:00 2001 From: Jason Dobry Date: Mon, 9 Jan 2017 20:50:13 -0800 Subject: [PATCH] Vision snippets. (#294) --- monitoring/snippets/system-test/create_custom_metric.test.js | 2 +- monitoring/snippets/system-test/list_resources.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/monitoring/snippets/system-test/create_custom_metric.test.js b/monitoring/snippets/system-test/create_custom_metric.test.js index acd608a323..8c58494083 100644 --- a/monitoring/snippets/system-test/create_custom_metric.test.js +++ b/monitoring/snippets/system-test/create_custom_metric.test.js @@ -23,7 +23,7 @@ function getPointValue (timeSeries) { } test.before(stubConsole); -test.after(restoreConsole); +test.after.always(restoreConsole); test.cb('should create and read back a custom metric', (t) => { customMetricsExample.main( diff --git a/monitoring/snippets/system-test/list_resources.test.js b/monitoring/snippets/system-test/list_resources.test.js index caccc16a04..5039b8a1cd 100644 --- a/monitoring/snippets/system-test/list_resources.test.js +++ b/monitoring/snippets/system-test/list_resources.test.js @@ -18,7 +18,7 @@ require(`../../system-test/_setup`); const listResourcesExample = require(`../list_resources`); test.before(stubConsole); -test.after(restoreConsole); +test.after.always(restoreConsole); test.cb(`should list a bunch of stuff`, (t) => { listResourcesExample.main(process.env.GCLOUD_PROJECT, (err, results) => {