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

add a small test for scheduler #178

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

abdullah-cognite
Copy link
Collaborator

@abdullah-cognite abdullah-cognite commented Sep 19, 2024

I dont really know where Im going with this, I just created this to see if we can catch the issue with incorrect cron expressions on the connector. Seems like incorrect expressions should already be caught by the NCrontab library, but for some reason we still ran into an issue by providing the wrong expression. 🤔

@abdullah-cognite abdullah-cognite requested a review from a team as a code owner September 19, 2024 11:33
Copy link

codecov bot commented Sep 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.71%. Comparing base (3284695) to head (4774223).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #178      +/-   ##
==========================================
+ Coverage   69.56%   69.71%   +0.14%     
==========================================
  Files          33       33              
  Lines        3434     3437       +3     
  Branches      402      402              
==========================================
+ Hits         2389     2396       +7     
+ Misses        890      886       -4     
  Partials      155      155              
Files with missing lines Coverage Δ
Cognite.Simulator.Utils/SimulationScheduler.cs 77.63% <100.00%> (+0.42%) ⬆️

... and 1 file with indirect coverage changes

@abdullah-cognite abdullah-cognite added the bug Something isn't working label Sep 19, 2024
Comment on lines +84 to +88
public ScheduledJob<V> SetSchedule(string CronExpression)
{
Schedule = CrontabSchedule.Parse(CronExpression);
return this;
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

why not having this in the constructor?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants