Skip to content

Commit

Permalink
* Use Guids for uniqueness
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebakken committed Dec 11, 2024
1 parent 0c2ee5b commit 850b426
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions projects/Test/Common/IntegrationFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -443,19 +443,12 @@ protected async Task WithTemporaryChannelAsync(Func<IChannel, Task> action)

protected string GenerateExchangeName()
{
return $"{_testDisplayName}-exchange-{Now}-{GenerateShortUuid()}";
return $"{_testDisplayName}-exchange-{Now}-{Guid.NewGuid()}";
}

protected string GenerateQueueName(bool useGuid = false)
protected string GenerateQueueName()
{
if (useGuid)
{
return $"{_testDisplayName}-queue-{Now}-{Guid.NewGuid()}";
}
else
{
return $"{_testDisplayName}-queue-{Now}-{GenerateShortUuid()}";
}
return $"{_testDisplayName}-queue-{Now}-{Guid.NewGuid()}";
}

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

0 comments on commit 850b426

Please sign in to comment.