8000 test: minor fixes in is-within-range test · coder/coder@de920b8 · GitHub
[go: up one dir, main page]

Skip to content

Commit de920b8

Browse files
test: minor fixes in is-within-range test
1 parent b957eb6 commit de920b8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

coderd/schedule/cron/cron_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,9 @@ func TestIsWithinRange(t *testing.T) {
186186
expectedWithinRange: true,
187187
},
188188
{
189-
name: "9AM - One minute after the start of the time range",
189+
name: "9:01 AM - One minute after the start of the time range",
190190
spec: "* 9-18 * * 1-5",
191-
at: mustParseTime(t, time.RFC1123, "Mon, 02 Jun 2025 9:00:00 UTC"),
191+
at: mustParseTime(t, time.RFC1123, "Mon, 02 Jun 2025 9:01:00 UTC"),
192192
expectedWithinRange: true,
193193
},
194194
{
@@ -198,7 +198,7 @@ func TestIsWithinRange(t *testing.T) {
198198
expectedWithinRange: true,
199199
},
200200
{
201-
name: "6PM - Around one hour before the end of the time range",
201+
name: "6PM - One hour before the end of the time range",
202202
spec: "* 9-18 * * 1-5",
203203
at: mustParseTime(t, time.RFC1123, "Mon, 02 Jun 2025 18:00:00 UTC"),
204204
expectedWithinRange: true,
@@ -216,9 +216,9 @@ func TestIsWithinRange(t *testing.T) {
216216
expectedWithinRange: false,
217217
},
218218
{
219-
name: "7PM - Around one minute after the end of the time range",
219+
name: "7:01PM - One minute after the end of the time range",
220220
spec: "* 9-18 * * 1-5",
221-
at: mustParseTime(t, time.RFC1123, "Mon, 02 Jun 2025 19:00:00 UTC"),
221+
at: mustParseTime(t, time.RFC1123, "Mon, 02 Jun 2025 19:01:00 UTC"),
222222
expectedWithinRange: false,
223223
},
224224
{

0 commit comments

Comments
 (0)
0