Browse Source

Increase timeout.

pull/1301/head
Sebastian Stehle 7 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 try
{ {
Console.WriteLine("AASDASD");
CreateCollection(); CreateCollection();
await SetupCollectionAsync(Collection, ct); 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); = client.CreateSubscriptionStream<ContentChangesResult>(contentChanges);
var publishedContent = 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(); .FirstOrDefaultAsync();
// Wait a little bit for the subscription to propagate. // Wait a little bit for the subscription to propagate.
@ -104,7 +104,7 @@ public class GraphQLSubscriptionTests(ContentFixture fixture) : IClassFixture<Co
= client.CreateSubscriptionStream<AssetChangesResult>(assetChanges); = client.CreateSubscriptionStream<AssetChangesResult>(assetChanges);
var publishedAsset = 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(); .FirstOrDefaultAsync();

Loading…
Cancel
Save