Skip to content

Commit 1261451

Browse files
authored
Merge pull request GoogleCloudPlatform#362 from GoogleCloudPlatform/tswast-monitoring
Fix monitoring tests.
2 parents 1169536 + c1a94b5 commit 1261451

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

monitoring/v3/src/test/java/ListResourcesTest.java

+1-4
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ public void testListMonitoredResourceDescriptors() throws Exception {
6767
this.underTest.listMonitoredResourceDescriptors();
6868
String result = new String(os.toByteArray());
6969
assertThat(result)
70-
.named("output text stream")
7170
.contains("An application running in Google App Engine");
7271
}
7372

@@ -80,8 +79,7 @@ public void testListMetrics() throws Exception {
8079
this.underTest.listMetricDescriptors();
8180
String result = new String(os.toByteArray());
8281
assertThat(result)
83-
.named("output text stream")
84-
.contains("Delta CPU usage time. Units are second");
82+
.contains("agent.googleapis.com/cpu/usage_time");
8583
}
8684

8785
/**
@@ -93,7 +91,6 @@ public void testListTimeseries() throws Exception {
9391
this.underTest.listTimeseries();
9492
String result = new String(os.toByteArray());
9593
assertThat(result)
96-
.named("output text stream")
9794
.contains("listTimeseries response");
9895
}
9996
}

0 commit comments

Comments
 (0)