Skip to content

Commit cf84790

Browse files
committed
* Ensure unique toxic name because integration tests run in parallel per-TFM now.
1 parent 1835fd2 commit cf84790

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

projects/Test/Common/IntegrationFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,6 @@ protected void LogWarning(string text,
665665
Path.GetFileName(file), line, member, text);
666666
}
667667

668-
private static string GenerateShortUuid() => S_Random.Next().ToString("x");
668+
protected static string GenerateShortUuid() => S_Random.Next().ToString("x");
669669
}
670670
}

projects/Test/Integration/TestToxiproxy.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ public async Task TestTcpReset_GH1464()
271271

272272
Assert.True(await channelCreatedTcs.Task);
273273

274-
const string toxicName = "rmq-localhost-reset_peer";
274+
string toxicName = $"rmq-localhost-reset_peer-{Util.Now}-{GenerateShortUuid()}";
275275
var resetPeerToxic = new ResetPeerToxic();
276276
resetPeerToxic.Name = toxicName;
277277
resetPeerToxic.Attributes.Timeout = 500;
@@ -354,7 +354,7 @@ public async Task TestPublisherConfirmationThrottling()
354354

355355
await channelCreatedTcs.Task;
356356

357-
const string toxicName = "rmq-localhost-bandwidth";
357+
string toxicName = $"rmq-localhost-bandwidth-{Util.Now}-{GenerateShortUuid()}";
358358
var bandwidthToxic = new BandwidthToxic();
359359
bandwidthToxic.Name = toxicName;
360360
bandwidthToxic.Attributes.Rate = 0;

0 commit comments

Comments
 (0)