Skip to content

Commit 4570ea4

Browse files
committed
Shorten custom metric type used for system testing.
When run on Travis, the 'unique_resource_id()' function causes the type name to exceed 40 characters: reducing the prefix length empirically allows the 'create()' | 'delete()' pair to work as intended.
1 parent a5594a7 commit 4570ea4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system_tests/monitoring.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def test_query(self):
165165
pass # Not necessarily reached.
166166

167167
def test_create_and_delete_metric_descriptor(self):
168-
METRIC_TYPE = ('custom.googleapis.com/tmp/system_test_example' +
168+
METRIC_TYPE = ('custom.googleapis.com/tmp/systest' +
169169
unique_resource_id())
170170
METRIC_KIND = monitoring.MetricKind.GAUGE
171171
VALUE_TYPE = monitoring.ValueType.DOUBLE

0 commit comments

Comments
 (0)