From bdda40a7170b10f95c227824bd4a8a2b54347c14 Mon Sep 17 00:00:00 2001 From: donghyun Date: Thu, 24 Nov 2022 00:05:31 +0900 Subject: [PATCH] fix ets cron flusher test --- test/prom_ex/ets_cron_flusher_test.exs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/test/prom_ex/ets_cron_flusher_test.exs b/test/prom_ex/ets_cron_flusher_test.exs index 1c41a253..8fdacb6e 100644 --- a/test/prom_ex/ets_cron_flusher_test.exs +++ b/test/prom_ex/ets_cron_flusher_test.exs @@ -42,17 +42,17 @@ defmodule PromEx.ETSCronFlusherTest do Events.execute_all(:phoenix) - assert length(get_metrics_table(DefaultPromExSetUp)) == 5 - assert length(get_dist_table(DefaultPromExSetUp)) == 40 + assert length(get_metrics_table(DefaultPromExSetUp)) == 6 + assert length(get_dist_table(DefaultPromExSetUp)) == 42 Events.execute_all(:phoenix) - assert length(get_metrics_table(DefaultPromExSetUp)) == 5 - assert length(get_dist_table(DefaultPromExSetUp)) == 80 + assert length(get_metrics_table(DefaultPromExSetUp)) == 6 + assert length(get_dist_table(DefaultPromExSetUp)) == 84 Process.sleep(8_000) - assert length(get_metrics_table(DefaultPromExSetUp)) == 11 + assert length(get_metrics_table(DefaultPromExSetUp)) == 14 assert get_dist_table(DefaultPromExSetUp) == [] new_timer_ref = get_timer_ref(DefaultPromExSetUp) @@ -72,17 +72,17 @@ defmodule PromEx.ETSCronFlusherTest do Events.execute_all(:phoenix) - assert length(get_metrics_table(ManualPromExSetUp)) == 5 - assert length(get_dist_table(ManualPromExSetUp)) == 40 + assert length(get_metrics_table(ManualPromExSetUp)) == 6 + assert length(get_dist_table(ManualPromExSetUp)) == 42 Events.execute_all(:phoenix) - assert length(get_metrics_table(ManualPromExSetUp)) == 5 - assert length(get_dist_table(ManualPromExSetUp)) == 80 + assert length(get_metrics_table(ManualPromExSetUp)) == 6 + assert length(get_dist_table(ManualPromExSetUp)) == 84 Process.sleep(3_500) - assert length(get_metrics_table(ManualPromExSetUp)) == 11 + assert length(get_metrics_table(ManualPromExSetUp)) == 14 assert get_dist_table(ManualPromExSetUp) == [] new_timer_ref = get_timer_ref(ManualPromExSetUp)