Skip to content

Commit

Permalink
avoid parallel tests that compete for client port
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerje committed Dec 14, 2024
1 parent 37cdbc0 commit dcaa88d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
14 changes: 14 additions & 0 deletions src/Tests/Unit/ServiceWireTests/SequentialCollection.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xunit;

namespace ServiceWireTests
{
[CollectionDefinition("Sequential Collection", DisableParallelization = true)]
public class SequentialCollection
{
}
}
1 change: 1 addition & 0 deletions src/Tests/Unit/ServiceWireTests/TcpTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

namespace ServiceWireTests
{
[Collection("Sequential Collection")]
public class TcpTests : IDisposable
{
private INetTester _tester;
Expand Down
3 changes: 2 additions & 1 deletion src/Tests/Unit/ServiceWireTests/TcpZkTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ public ZkPasswordHash GetPasswordHashSet(string username)
return _hash;
}
}


[Collection("Sequential Collection")]
public class TcpZkTests : IDisposable
{
private INetTester _tester;
Expand Down

0 comments on commit dcaa88d

Please sign in to comment.