From 62169766ece772cda3adb28bb537baa19d7b1ab3 Mon Sep 17 00:00:00 2001 From: 1289220708 <1289220708@qq.com> Date: Wed, 20 Sep 2023 23:48:11 +0800 Subject: [PATCH] better code --- .../main/java/org/apache/hugegraph/api/MetricsApiTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hugegraph-test/src/main/java/org/apache/hugegraph/api/MetricsApiTest.java b/hugegraph-test/src/main/java/org/apache/hugegraph/api/MetricsApiTest.java index ada0de1002..cce5af30cc 100644 --- a/hugegraph-test/src/main/java/org/apache/hugegraph/api/MetricsApiTest.java +++ b/hugegraph-test/src/main/java/org/apache/hugegraph/api/MetricsApiTest.java @@ -190,7 +190,7 @@ public void testMetricsBackend() { value = e.getValue(); Assert.assertTrue(String.format( "Expect map value for key %s but got %s", - key, value), + key, value), value instanceof Map); host = (Map) value; assertMapContains(host, "mem_max"); @@ -259,7 +259,7 @@ public void testMetricsBackend() { value = e.getValue(); Assert.assertTrue(String.format( "Expect map value for key %s but got %s", - key, value), + key, value), value instanceof Map); Map regionServer = (Map) value; assertMapContains(regionServer, "mem_max");