Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
wardviaene committed Aug 26, 2024
1 parent 21e8108 commit 705305d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/rest/stats_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ 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[0].X != "2024-08-25T18:30:42" {
t.Fatalf("unexpected data: %s", userStatsResponse.Handshakes.Datasets[0].Data[1].X)
if userStatsResponse.Handshakes.Datasets[0].Data[0].X != time.Now().Format("2006-01-02")+"T18:30:42" {
t.Fatalf("unexpected data: %s", userStatsResponse.Handshakes.Datasets[0].Data[0].X)
}

}

0 comments on commit 705305d

Please sign in to comment.