Skip to content

Commit

Permalink
[tests] added missing time.Duration for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
4lch4 committed Dec 14, 2023
1 parent e8a37e3 commit b195f96
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,20 +182,20 @@ func TestGetAge(t *testing.T) {
}{
{
desc: "TestHalfHourDiff",
hrsAdd: 0 * time.Hour,
hrsAdd: time.Duration(0) * time.Hour,
minsAdd: time.Duration(30) * time.Minute,
expected: 60 * 30,
},
{
desc: "TestHourDiff",
hrsAdd: 1 * time.Hour,
minsAdd: 0 * time.Minute,
hrsAdd: time.Duration(1) * time.Hour,
minsAdd: time.Duration(0) * time.Minute,
expected: 60 * 60,
},
{
desc: "TestDayDiff",
hrsAdd: 24 * time.Hour,
minsAdd: 0 * time.Minute,
hrsAdd: time.Duration(24) * time.Hour,
minsAdd: time.Duration(0) * time.Minute,
expected: 60 * 60 * 24,
},
}
Expand Down

0 comments on commit b195f96

Please sign in to comment.