Browse Source

Increase timeout.

pull/1301/head
Sebastian Stehle 4 months ago
parent
commit
3a57618153
  1. 1
      backend/src/Squidex.Data.MongoDb/Infrastructure/MongoRepositoryBase.cs
  2. 4
      tools/TestSuite/TestSuite.ApiTests/GraphQLSubscriptionTests.cs

1
backend/src/Squidex.Data.MongoDb/Infrastructure/MongoRepositoryBase.cs

@ -87,7 +87,6 @@ public abstract class MongoRepositoryBase<T> : MongoBase<T>, IInitializable
{
try
{
Console.WriteLine("AASDASD");
CreateCollection();
await SetupCollectionAsync(Collection, ct);

4
tools/TestSuite/TestSuite.ApiTests/GraphQLSubscriptionTests.cs

@ -64,7 +64,7 @@ public class GraphQLSubscriptionTests(ContentFixture fixture) : IClassFixture<Co
= client.CreateSubscriptionStream<ContentChangesResult>(contentChanges);
var publishedContent =
subscriptionStream.Where(x => x.Data.ContentChanges.Id == contentId).Timeout(TimeSpan.FromSeconds(30))
subscriptionStream.Where(x => x.Data.ContentChanges.Id == contentId).Timeout(TimeSpan.FromSeconds(60))
.FirstOrDefaultAsync();
// Wait a little bit for the subscription to propagate.
@ -104,7 +104,7 @@ public class GraphQLSubscriptionTests(ContentFixture fixture) : IClassFixture<Co
= client.CreateSubscriptionStream<AssetChangesResult>(assetChanges);
var publishedAsset =
subscriptionStream.Where(x => x.Data.AssetChanges.Id == assetId).Timeout(TimeSpan.FromSeconds(30))
subscriptionStream.Where(x => x.Data.AssetChanges.Id == assetId).Timeout(TimeSpan.FromSeconds(60))
.FirstOrDefaultAsync();

Loading…
Cancel
Save