Skip to content

Commit 5a6f138

Browse files
committed
Update README with Docker Hub and code samples links; enhance integration test initialization with delay
1 parent e8b8d19 commit 5a6f138

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@
77

88

99
### References
10+
- [Docker Hub](https://hub.docker.com/r/microsoft/azure-messaging-servicebus-emulator)
1011
- [Official Documentation](https://learn.microsoft.com/en-us/azure/service-bus-messaging/test-locally-with-service-bus-emulator?tabs=automated-script)
12+
- [Code Samples](https://github.com/Azure/azure-service-bus-emulator-installer/tree/main/Sample-Code-Snippets/NET/ServiceBus.Emulator.Console.Sample)

tests/Demo.Tests/Config/IntegrationTestsFactory.cs

+6-2
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,15 @@ public IntegrationTestsFactory()
6363
public string GetServiceBusConnectionString()
6464
=> $"Endpoint=sb://{_serviceBusContainer.Hostname}:{_serviceBusContainer.GetMappedPublicPort(SERVICE_BUS_PORT)};SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=SAS_KEY_VALUE;UseDevelopmentEmulator=true;";
6565

66-
public Task InitializeAsync()
67-
=> Task.WhenAll(
66+
public async Task InitializeAsync()
67+
{
68+
await Task.WhenAll(
6869
_azureSqlEdgeContainer.StartAsync(),
6970
_serviceBusContainer.StartAsync());
7071

72+
await Task.Delay(TimeSpan.FromSeconds(2));
73+
}
74+
7175
public Task DisposeAsync()
7276
=> Task.WhenAll(
7377
_azureSqlEdgeContainer.StopAsync(),

0 commit comments

Comments
 (0)