Skip to content

Commit

Permalink
fix that the metrics information test was not being asserted (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
runeanielsen authored Oct 23, 2023
1 parent 59b62da commit ef99e7e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/typesense/client_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit ef99e7e

Please sign in to comment.