Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dbdec1c

Browse files
authored
[tests] Increase efcore timeout for cosmos in CosmosEndToEnd (#5464)
.. playground app. The `/ef` request times out after 65 seconds, which is the default timeout for efcore cosmos requests. Bumping this to 120 seconds makes the test run more stable. Fixes issue: #5415
1 parent 23753e1 commit dbdec1c

File tree

1 file changed

+4
-1
lines changed
  • playground/CosmosEndToEnd/CosmosEndToEnd.ApiService

1 file changed

+4
-1
lines changed

playground/CosmosEndToEnd/CosmosEndToEnd.ApiService/Program.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99

1010
builder.AddServiceDefaults();
1111
builder.AddAzureCosmosClient("cosmos");
12-
builder.AddCosmosDbContext<TestCosmosContext>("cosmos", "ef");
12+
builder.AddCosmosDbContext<TestCosmosContext>("cosmos", "ef", configureDbContextOptions =>
13+
{
14+
configureDbContextOptions.RequestTimeout = TimeSpan.FromSeconds(120);
15+
});
1316

1417
var app = builder.Build();
1518

0 commit comments

Comments
 (0)