Skip to content

Commit

Permalink
NOJ - Fix date parsing
Browse files Browse the repository at this point in the history
Mon Jul  1 10:40:06 2024 does not parse correctly (no 0 before day)
  • Loading branch information
gr211 committed Jul 1, 2024
1 parent bb9b12a commit b6f5c0a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions systemd/checks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,6 @@ func fileErrorCheck(t *testing.T, when time.Time) error {
}

func TestDatesParsing(t *testing.T) {
if _, err := parseDate("Mon Jul 1 10:40:06 2024"); err != nil {
t.Errorf("%v", err)
}

// extra space before day
if _, err := parseDate("Mon Jul 1 10:40:06 2024"); err != nil {
t.Errorf("%v", err)
Expand Down

0 comments on commit b6f5c0a

Please sign in to comment.