Skip to content

Commit

Permalink
fix downtime test
Browse files Browse the repository at this point in the history
comment ids start at 1.
  • Loading branch information
sni committed Jun 22, 2023
1 parent 696a5a9 commit a2bed87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test-scheduled-downtimes.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ START_TEST(host_downtime_id_retained_across_reload)

dt = find_downtime(ANY_DOWNTIME, downtime_id);
ck_assert(dt != NULL);
ck_assert(0 == dt->comment_id);
ck_assert(1 == dt->comment_id);

ck_assert(OK == handle_scheduled_downtime(dt));
comment_id = dt->comment_id;
Expand Down

0 comments on commit a2bed87

Please sign in to comment.