Skip to content

Commit dbfef9b

Browse files
committed
fixup
1 parent a295684 commit dbfef9b

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

RabbitMQ.AMQP.Client/RecoveryConfiguration.cs

Lines changed: 0 additions & 7 deletions
This file was deleted.

Tests/IntegrationTest.Static.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
using System;
66
using System.Collections.Generic;
7+
using System.Text.RegularExpressions;
78
using System.Threading.Tasks;
89
using RabbitMQ.AMQP.Client;
910
using Xunit.Sdk;
@@ -13,6 +14,7 @@ namespace Tests;
1314
public abstract partial class IntegrationTest
1415
{
1516
const string DefaultRabbitMqHost = "localhost";
17+
private static readonly Regex s_testDisplayNameRegex = new Regex("^Tests\\.", RegexOptions.Compiled | RegexOptions.CultureInvariant);
1618
private static readonly HttpApiClient s_httpApiClient = new();
1719
private static readonly string s_rabbitMqHost = InitRabbitMqHost();
1820
private static readonly bool s_isRunningInCI = InitIsRunningInCI();

Tests/IntegrationTest.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -351,9 +351,7 @@ private string InitTestDisplayName()
351351
object? testObj = testMember.GetValue(_testOutputHelper);
352352
if (testObj is ITest test)
353353
{
354-
rv = test.DisplayName
355-
.Replace("Test.", string.Empty)
356-
.Replace("Integration.", "I.");
354+
rv = s_testDisplayNameRegex.Replace(test.DisplayName, "T.");
357355
}
358356
}
359357

0 commit comments

Comments
 (0)