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)) }