Adapt tests to rename of metric
The metric got renamed in change I05b673d02, but that forgot to adapt
the tests.
Signed-off-by: Edwin Kempin <ekempin@google.com>
Change-Id: Ib01f83bc5bcb7ae7c53fae7b516e1b19d524b180
diff --git a/javatests/com/google/gerrit/plugins/codeowners/backend/CodeOwnerResolverTest.java b/javatests/com/google/gerrit/plugins/codeowners/backend/CodeOwnerResolverTest.java
index 6e91160..6c6df4f 100644
--- a/javatests/com/google/gerrit/plugins/codeowners/backend/CodeOwnerResolverTest.java
+++ b/javatests/com/google/gerrit/plugins/codeowners/backend/CodeOwnerResolverTest.java
@@ -701,7 +701,7 @@
assertThat(result.get()).hasAccountIdThat().isEqualTo(admin.id());
assertThat(testMetricMaker.getCount("plugins/code-owners/count_code_owner_resolutions"))
.isEqualTo(1);
- assertThat(testMetricMaker.getCount("plugins/code-owners/count_code_owner_config_reads"))
+ assertThat(testMetricMaker.getCount("plugins/code-owners/count_code_owner_cache_reads"))
.isEqualTo(0);
// Doing the same lookup again doesn't resolve the code owner again.
@@ -710,7 +710,7 @@
assertThat(result.get()).hasAccountIdThat().isEqualTo(admin.id());
assertThat(testMetricMaker.getCount("plugins/code-owners/count_code_owner_resolutions"))
.isEqualTo(0);
- assertThat(testMetricMaker.getCount("plugins/code-owners/count_code_owner_config_reads"))
+ assertThat(testMetricMaker.getCount("plugins/code-owners/count_code_owner_cache_reads"))
.isEqualTo(1);
}
@@ -724,7 +724,7 @@
assertThat(result).isEmpty();
assertThat(testMetricMaker.getCount("plugins/code-owners/count_code_owner_resolutions"))
.isEqualTo(1);
- assertThat(testMetricMaker.getCount("plugins/code-owners/count_code_owner_config_reads"))
+ assertThat(testMetricMaker.getCount("plugins/code-owners/count_code_owner_cache_reads"))
.isEqualTo(0);
// Doing the same lookup again doesn't resolve the code owner again.
@@ -735,7 +735,7 @@
assertThat(result).isEmpty();
assertThat(testMetricMaker.getCount("plugins/code-owners/count_code_owner_resolutions"))
.isEqualTo(0);
- assertThat(testMetricMaker.getCount("plugins/code-owners/count_code_owner_config_reads"))
+ assertThat(testMetricMaker.getCount("plugins/code-owners/count_code_owner_cache_reads"))
.isEqualTo(1);
}
}