Fix most recent fix for ci test
This commit is contained in:
@@ -129,10 +129,15 @@ public class ApiFixture : WebApplicationFactory<Program>, IAsyncLifetime
|
||||
VirtualHost = "vigilcare_test",
|
||||
});
|
||||
|
||||
using var scope = Services.CreateScope();
|
||||
var redis = scope.ServiceProvider.GetRequiredService<IConnectionMultiplexer>();
|
||||
var server = redis.GetServer(redis.GetEndPoints().First());
|
||||
await server.FlushDatabaseAsync(1);
|
||||
// Flush Redis before starting the host. Accessing Services boots many hosted
|
||||
// services that saturate the thread pool; FLUSHDB on the shared multiplexer
|
||||
// then times out waiting for a reply that already arrived (see SE.Redis
|
||||
// TimeoutException: last-in/cur-in stuck, QueuedItems > 0).
|
||||
await using (var redis = await ConnectionMultiplexer.ConnectAsync(RedisConnection))
|
||||
{
|
||||
var server = redis.GetServer(redis.GetEndPoints().First());
|
||||
await server.FlushDatabaseAsync(1);
|
||||
}
|
||||
}
|
||||
|
||||
protected override void ConfigureClient(HttpClient client)
|
||||
|
||||
Reference in New Issue
Block a user