Skip to content

Commit 18b5d40

Browse files
committed
Increase efcore timeout for Cosmos in CosmosEndToEnd
.. playground app. Fixes issue: #5415
1 parent 0587e48 commit 18b5d40

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)