Skip to content

Commit

Permalink
Fix test, we expect ms now
Browse files Browse the repository at this point in the history
  • Loading branch information
MaXal committed Dec 6, 2024
1 parent a68f437 commit 86b1c0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/degradation-detector/slack_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ func TestGetDateLink(t *testing.T) {
{
name: "One week range",
degradation: Degradation{
timestamp: mockNow.Unix(),
timestamp: mockNow.UnixMilli(),
},
expected: "timeRange=custom&customRange=2024-11-28:2024-12-5",
},
{
name: "Different timestamp",
degradation: Degradation{
timestamp: mockNow.AddDate(0, 0, -2).Unix(), // 2 days before mockNow
timestamp: mockNow.AddDate(0, 0, -2).UnixMilli(), // 2 days before mockNow
},
expected: "timeRange=custom&customRange=2024-11-26:2024-12-5",
},
Expand Down

0 comments on commit 86b1c0a

Please sign in to comment.