File: fix-reprotest.patch

package info (click to toggle)
ruby-sidekiq-cron 1.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 408 kB
  • sloc: ruby: 2,156; sh: 8; makefile: 3
file content (17 lines) | stat: -rw-r--r-- 656 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Use time in seconds instead of 1.day (Fixes reprotest)
Author: Mohammed Bilal <mdbilal@disroot.org>
Forwarded: not-needed
Last-Update: 2022-10-08
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/test/unit/job_test.rb
+++ b/test/unit/job_test.rb
@@ -276,7 +276,7 @@
       if time.hour >= 2
         assert_equal @job.last_time(time).strftime("%Y-%m-%d-%H-%M-%S"), time.strftime("%Y-%m-%d-02-01-00")
       else
-        yesterday = time - 1.day
+        yesterday = time - 60*60*24
         assert_equal @job.last_time(time).strftime("%Y-%m-%d-%H-%M-%S"), yesterday.strftime("%Y-%m-%d-02-01-00")
       end
     end