Skip to content

Commit

Permalink
Fake log messages with one per millisecond
Browse files Browse the repository at this point in the history
At once message per second, we quickly hit the "2 hours in future"
validation for very large logs (like `gha-patch.txt`).
  • Loading branch information
pbrisbin committed Jul 25, 2024
1 parent bacbd12 commit e9a9e3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Restyled/Development/Seeds.hs
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,8 @@ seedJob Repo {..} pullRequest createdAt mExitCode untimestamped = do
, JobExitCode =. Just ec
]

secondsFrom :: UTCTime -> NonEmpty UTCTime
secondsFrom = NE.iterate $ addUTCTime 1
msecondsFrom :: UTCTime -> [UTCTime]
msecondsFrom = iterate $ addUTCTime 0.001

seedJobLogLines
:: ( MonadUnliftIO m
Expand Down

0 comments on commit e9a9e3e

Please sign in to comment.