test(server): scale the job waits by the CI time factor
CI / Build and test (pull_request) Successful in 5m35s
CI / Windows tests and installer (pull_request) Skipped
CI / YAML check (pull_request) Successful in 4s
CI / PostgreSQL 16 integration (pull_request) Successful in 4m13s
CI / PostgreSQL 17 integration (pull_request) Successful in 4m8s
CI / Docker image (pull_request) Successful in 1m29s
CI / Build and test (pull_request) Successful in 5m35s
CI / Windows tests and installer (pull_request) Skipped
CI / YAML check (pull_request) Successful in 4s
CI / PostgreSQL 16 integration (pull_request) Successful in 4m13s
CI / PostgreSQL 17 integration (pull_request) Successful in 4m8s
CI / Docker image (pull_request) Successful in 1m29s
RenderJobsThatCannotBeReadNeverStopTheEngine timed out on the shared runner (PostgreSQL 17) while the upload's background jobs ran first: the 15 s wait was the one job wait not scaled by CHRONOS_TEST_TIME_FACTOR. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6ec91dcf33
commit
92dba8665a
3 files changed
+3
-3
No files matched your search
@@ -115,7 +115,7 @@ public sealed class JobApiTests(TestContext context)
|
||||
|
||||
public static async Task<JobDto> WaitForAsync(HttpClient client, Guid id, string state)
|
||||
{
|
||||
var deadline = DateTime.UtcNow.AddSeconds(15);
|
||||
var deadline = DateTime.UtcNow.AddSeconds(TestTiming.Budget(15));
|
||||
while (true)
|
||||
{
|
||||
var job = await GetAsync(client, id);
|
||||
|
||||
@@ -416,7 +416,7 @@ public sealed class RenderNodeClientTests(TestContext context)
|
||||
|
||||
private static async Task UntilAsync(Func<Task<bool>> condition, string what)
|
||||
{
|
||||
var until = DateTime.UtcNow.AddSeconds(30);
|
||||
var until = DateTime.UtcNow.AddSeconds(TestTiming.Budget(30));
|
||||
while (!await condition())
|
||||
{
|
||||
if (DateTime.UtcNow > until) Assert.Fail("Timed out waiting for " + what);
|
||||
|
||||
@@ -134,7 +134,7 @@ internal sealed class SyncClient : IAsyncDisposable
|
||||
|
||||
public async Task<Job> WaitAsync(Guid jobId, JobState state = JobState.Done)
|
||||
{
|
||||
var until = DateTime.UtcNow.AddSeconds(60);
|
||||
var until = DateTime.UtcNow.AddSeconds(TestTiming.Budget(60));
|
||||
while (true)
|
||||
{
|
||||
var job = await Db.Jobs.GetAsync(jobId, Ct);
|
||||
|
||||
Reference in new issue
Block a user