Merge all changes
This commit is contained in:
@@ -162,6 +162,7 @@ public sealed class HeartbeatTimeoutTests
|
||||
|
||||
// Assert
|
||||
var recoveredJob = await jobStore.GetJobAsync(jobId);
|
||||
Assert.NotNull(recoveredJob);
|
||||
recoveredJob.State.Should().Be(JobState.Pending, "stale job should be reset to pending");
|
||||
recoveredJob.LockHolder.Should().BeNull("stale lock should be released");
|
||||
|
||||
@@ -215,6 +216,7 @@ public sealed class HeartbeatTimeoutTests
|
||||
|
||||
// Assert
|
||||
var jobAfterCleanup = await jobStore.GetJobAsync(jobId);
|
||||
Assert.NotNull(jobAfterCleanup);
|
||||
jobAfterCleanup.State.Should().Be(JobState.Processing, "active job should not be reset");
|
||||
jobAfterCleanup.LockHolder.Should().Be("active-worker", "active lock should be preserved");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user