From c1a94b5092dc433dca78b79b682edf28aa68f2f5 Mon Sep 17 00:00:00 2001 From: Tim Swast Date: Tue, 11 Oct 2016 12:43:26 -0700 Subject: [PATCH] Fix monitoring tests. Look for a type instead of description, since that should be less likely to change. --- monitoring/v3/src/test/java/ListResourcesTest.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/monitoring/v3/src/test/java/ListResourcesTest.java b/monitoring/v3/src/test/java/ListResourcesTest.java index e8415d76ad4..46ecfd33488 100644 --- a/monitoring/v3/src/test/java/ListResourcesTest.java +++ b/monitoring/v3/src/test/java/ListResourcesTest.java @@ -67,7 +67,6 @@ public void testListMonitoredResourceDescriptors() throws Exception { this.underTest.listMonitoredResourceDescriptors(); String result = new String(os.toByteArray()); assertThat(result) - .named("output text stream") .contains("An application running in Google App Engine"); } @@ -80,8 +79,7 @@ public void testListMetrics() throws Exception { this.underTest.listMetricDescriptors(); String result = new String(os.toByteArray()); assertThat(result) - .named("output text stream") - .contains("Delta CPU usage time. Units are second"); + .contains("agent.googleapis.com/cpu/usage_time"); } /** @@ -93,7 +91,6 @@ public void testListTimeseries() throws Exception { this.underTest.listTimeseries(); String result = new String(os.toByteArray()); assertThat(result) - .named("output text stream") .contains("listTimeseries response"); } }