Skip to content

Commit 850b426

Browse files
committed
* Use Guids for uniqueness
1 parent 0c2ee5b commit 850b426

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

projects/Test/Common/IntegrationFixture.cs

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -443,19 +443,12 @@ protected async Task WithTemporaryChannelAsync(Func<IChannel, Task> action)
443443

444444
protected string GenerateExchangeName()
445445
{
446-
return $"{_testDisplayName}-exchange-{Now}-{GenerateShortUuid()}";
446+
return $"{_testDisplayName}-exchange-{Now}-{Guid.NewGuid()}";
447447
}
448448

449-
protected string GenerateQueueName(bool useGuid = false)
449+
protected string GenerateQueueName()
450450
{
451-
if (useGuid)
452-
{
453-
return $"{_testDisplayName}-queue-{Now}-{Guid.NewGuid()}";
454-
}
455-
else
456-
{
457-
return $"{_testDisplayName}-queue-{Now}-{GenerateShortUuid()}";
458-
}
451+
return $"{_testDisplayName}-queue-{Now}-{Guid.NewGuid()}";
459452
}
460453

461454
protected Task WithTemporaryNonExclusiveQueueAsync(Func<IChannel, string, Task> action)

0 commit comments

Comments
 (0)