From 21e81087a3a036291b2449fa0ac81eed2530dea8 Mon Sep 17 00:00:00 2001 From: Edward Viaene Date: Sun, 25 Aug 2024 21:45:09 -0500 Subject: [PATCH] fix test --- pkg/rest/stats_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/rest/stats_test.go b/pkg/rest/stats_test.go index 5ec9712..4fe04d8 100644 --- a/pkg/rest/stats_test.go +++ b/pkg/rest/stats_test.go @@ -62,7 +62,7 @@ func TestUserStatsHandler(t *testing.T) { if userStatsResponse.TransmitBytes.Datasets[0].Data[1].Y != 813588 { t.Fatalf("unexpected data: %f", userStatsResponse.TransmitBytes.Datasets[0].Data[1].Y) } - if userStatsResponse.Handshakes.Datasets[0].Data[1].X != "2024-08-25T18:30:42" { + if userStatsResponse.Handshakes.Datasets[0].Data[0].X != "2024-08-25T18:30:42" { t.Fatalf("unexpected data: %s", userStatsResponse.Handshakes.Datasets[0].Data[1].X) }