From ef99e7eeba3a8c9cd8df51cfa4b3e7b39a6cdedd Mon Sep 17 00:00:00 2001 From: Rune Nielsen Date: Mon, 23 Oct 2023 19:20:10 +0200 Subject: [PATCH] fix that the metrics information test was not being asserted (#53) --- test/typesense/client_test.clj | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/typesense/client_test.clj b/test/typesense/client_test.clj index 34129a9..9e1d0e6 100644 --- a/test/typesense/client_test.clj +++ b/test/typesense/client_test.clj @@ -734,8 +734,8 @@ (testing "Getting metrics information" ;; Compare just the keys, the values change everytime the endpoint is called. - (let [res (keys (sut/metrics settings)) - exp {:system_cpu8_active_percentage + (let [res (sut/metrics settings) + exp [:system_cpu8_active_percentage :system_cpu12_active_percentage :typesense_memory_allocated_bytes :system_cpu5_active_percentage @@ -764,8 +764,8 @@ :system_cpu1_active_percentage :typesense_memory_retained_bytes :system_cpu7_active_percentage - :typesense_memory_active_bytes}] - (= res exp))) + :typesense_memory_active_bytes]] + (is (= (keys res) exp)))) (testing "Getting stats from a Typesense node" ;; Compare just the keys, the values might change everytime the endpoint is called.