Skip to content

Commit 2ac8372

Browse files
committed
test: disable parallelization for socket tests
1 parent 4cf8e4b commit 2ac8372

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

test/Cnblogs.DashScope.Sdk.UnitTests/DashScopeClientWebSocketTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
namespace Cnblogs.DashScope.Sdk.UnitTests;
1010

11+
[Collection(nameof(SocketTestsCollection))]
1112
public class DashScopeClientWebSocketTests
1213
{
1314
private static readonly FieldInfo InnerSocketInfo =
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
namespace Cnblogs.DashScope.Sdk.UnitTests;
2+
3+
[CollectionDefinition(nameof(SocketTestsCollection), DisableParallelization = true)]
4+
public class SocketTestsCollection : ICollectionFixture<SocketTestsFixture>
5+
{
6+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
namespace Cnblogs.DashScope.Sdk.UnitTests;
2+
3+
public class SocketTestsFixture
4+
{
5+
// leaving blank on purpose
6+
}

test/Cnblogs.DashScope.Sdk.UnitTests/SpeechSynthesizerSerializationTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Cnblogs.DashScope.Sdk.UnitTests;
44

5+
[Collection(nameof(SocketTestsCollection))]
56
public class SpeechSynthesizerSerializationTests
67
{
78
[Fact]

0 commit comments

Comments
 (0)