Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[backend] Fix cron test failed #2036

Merged
merged 2 commits into from
Dec 12, 2024
Merged

[backend] Fix cron test failed #2036

merged 2 commits into from
Dec 12, 2024

Conversation

RomuDeuxfois
Copy link
Member

Change cron test to avoid failing on Xh 59 minutes.

Copy link

codecov bot commented Dec 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 33.43%. Comparing base (2dc0b1b) to head (1b55bbc).
Report is 4 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #2036   +/-   ##
=========================================
  Coverage     33.43%   33.43%           
  Complexity     1668     1668           
=========================================
  Files           574      574           
  Lines         16799    16799           
  Branches        992      992           
=========================================
  Hits           5617     5617           
  Misses        10928    10928           
  Partials        254      254           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

+ " "
+ zonedDateTime.getHour()
+ " * * *"); // Every day now + 1 minute
"0 " + minuteToStart + " " + hourToStart + " * * *"); // Every day now + 1 minute
Scenario scenarioSaved = this.scenarioService.createScenario(scenario);
Copy link
Contributor

@savacano28 savacano28 Dec 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The message is correct if minuteTostart is 0 (cron : 0 0 0 * * *)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure to understand what you say

@RomuDeuxfois RomuDeuxfois merged commit 8f5aee5 into master Dec 12, 2024
7 checks passed
@RomuDeuxfois RomuDeuxfois deleted the improvment/cron-test branch December 12, 2024 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants