Skip to content

Commit

Permalink
Increased default expect timeouts where this is safe
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorFedchenko committed Feb 12, 2021
1 parent d50e4a2 commit ffe2eb4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/core/Akka.Persistence.TCK/Query/CurrentAllEventsSpec.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ namespace Akka.Persistence.TCK.Query
{
public class CurrentAllEventsSpec : Akka.TestKit.Xunit2.TestKit
{
private static readonly Config InternalConfig = "akka.persistence.query.journal.sql.max-buffer-size = 3";
// Expect should be passing by default, need to make them less sencitive to timing
private static readonly Config DefaultTimeoutConfig = "akka.test.single-expect-default = 30s";

private static readonly Config InternalConfig = DefaultTimeoutConfig.WithFallback("akka.persistence.query.journal.sql.max-buffer-size = 3");

protected ActorMaterializer Materializer { get; }

Expand Down
8 changes: 7 additions & 1 deletion src/core/Akka.Persistence.TestKit.Tests/TestJournalSpec.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
// </copyright>
//-----------------------------------------------------------------------


using Akka.Configuration;

namespace Akka.Persistence.TestKit.Tests
{
using System;
Expand All @@ -16,7 +19,10 @@ namespace Akka.Persistence.TestKit.Tests

public class TestJournalSpec : PersistenceTestKit
{
public TestJournalSpec()
// Expect should be passing by default, need to make them less sencitive to timing
private static readonly Config DefaultTimeoutConfig = "akka.test.single-expect-default = 30s";

public TestJournalSpec() : base(DefaultTimeoutConfig)
{
_probe = CreateTestProbe();
}
Expand Down

0 comments on commit ffe2eb4

Please sign in to comment.