-
Notifications
You must be signed in to change notification settings - Fork 11
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
Test refactorings #208
Test refactorings #208
Conversation
2d264de
to
2bc97df
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅ |
230819d
to
e42e3f5
Compare
Ok. For (some) reason, .NET SDK now doesn't detect anymore the .sln file. In order to workaround this, I had to patch the workflow file. @linkdotnet If you've got any insights about the underlying reason behind the initial failure, I'd be a taker :-/ |
As far as I can tell this might be related to a new deployed .NET SDK version. Installed version is 8.0.405 & dotnet-install: Installed version is 9.0.102 => Pass I've just retriggered a previously passing action. It now fails. |
Might be the CLI is "starting" to consider .slnx files (cf. dotnet/sdk#40913 (comment))? |
In any case, we could easily just delete the |
.github/workflows/dotnet.yml
Outdated
@@ -33,11 +33,11 @@ jobs: | |||
9.0.x | |||
|
|||
- name: Restore dependencies | |||
run: dotnet restore | |||
run: dotnet restore ./NCronJob.sln |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's delete the SLNX for now. It is still not stable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
|
||
public static class EventsHelper | ||
{ | ||
public static IList<ExecutionProgress> WithOrchestrationId( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm not sure if the name sits right with me.
It might imply we Concat the events list with a new orch-Id.
Maybe?
- FilterByOrchestrationId
- ForOrchestration
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
@@ -158,28 +157,23 @@ public async Task InstantJobCanStartADisabledJob(Func<IInstantJobRegistry, strin | |||
|
|||
await provider.GetRequiredService<IHostedService>().StartAsync(CancellationToken); | |||
|
|||
Guid scheduledOrchestrationId = events[0].CorrelationId; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Guid scheduledOrchestrationId = events[0].CorrelationId; | |
var scheduledOrchestrationId = events[0].CorrelationId; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
return events.Where(e => e.CorrelationId == orchestrationId).ToList(); | ||
} | ||
|
||
public static void AssertScheduledThenCancelled(IList<ExecutionProgress> events) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to follow the shouldly style here?
AKA: ShouldBeScheduledThenCancelled(this ILIst<ExectuionProgress>)
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
e42e3f5
to
019c338
Compare
019c338
to
0622649
Compare
Next up in the queue: rewriting NCronJobIntegrationTests. This one is going to be tedious. Hopefully, some of the changes introduced in that PR should make it a tad less cumbersome. |
Really appreciate your work @nulltoken It is a curse and a blessing. As I am a bit full with tasks and can't always find the energy and motivation to work on NCronJob, I know that there is someone doing a fantastic job - leading me more towards being passive. But really - appreciate it! |
Pull request description
PR meta checklist
main
branch for codeCode PR specific checklist