Skip to content

Commit

Permalink
Let most tests run concurrently
Browse files Browse the repository at this point in the history
  • Loading branch information
slang25 committed Nov 21, 2018
1 parent 9bfdb70 commit 9d2e55e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public DummySqsQueue(Uri uri, IAmazonSQS client) : base(RegionEndpoint.EUWest1,
public override Task<bool> ExistsAsync() => Task.FromResult(true);
}

[CollectionDefinition(nameof(WhenDispatchingMessage), DisableParallelization = true)]
public class WhenDispatchingMessage : XAsyncBehaviourTest<MessageDispatcher>
{
private const string ExpectedQueueUrl = "http://testurl.com/queue";
Expand Down
2 changes: 0 additions & 2 deletions JustSaying.UnitTests/JustSayingFluentlyTestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
using NSubstitute;
using Xunit;

[assembly: CollectionBehavior(DisableTestParallelization = true)]

namespace JustSaying.UnitTests
{
public abstract class JustSayingFluentlyTestBase : XAsyncBehaviourTest<JustSaying.JustSayingFluently>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public void Increment()
public int Count => _count;
}

[CollectionDefinition(nameof(MessageLoopTests), DisableParallelization = true)]
public class MessageLoopTests
{
private const int MinTaskDuration = 10;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

namespace JustSaying.UnitTests.Messaging.MessageProcessingStrategies
{
[CollectionDefinition(nameof(ThrottledTests), DisableParallelization = true)]
public class ThrottledTests
{
private readonly IMessageMonitor _fakeMonitor;
Expand Down

0 comments on commit 9d2e55e

Please sign in to comment.