From b34648ea28bb6afd8375fb02f9313439883ae8a0 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Sat, 10 Aug 2024 23:21:42 -0300 Subject: [PATCH] test: status --- internal/proxy/stats_test.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/internal/proxy/stats_test.go b/internal/proxy/stats_test.go index 253c424..d5e5e17 100644 --- a/internal/proxy/stats_test.go +++ b/internal/proxy/stats_test.go @@ -22,6 +22,7 @@ func TestCompareServerStats(t *testing.T) { Avg: time.Second, Degraded: false, Initialized: true, + ErrorRate: 10, }, { Name: "2", @@ -46,9 +47,16 @@ func TestCompareServerStats(t *testing.T) { Avg: 0, Degraded: true, Initialized: true, + ErrorRate: 15, }, } t.Log(names(v)) sort.Sort(serverStats(v)) - require.Equal(t, []string{"4", "1", "5", "2", "3"}, names(v)) + require.Equal(t, []string{ + "4", + "1", + "2", + "5", + "3", + }, names(v)) }