Can't bind port during E2E tests run #6843
-
I have a container for SMTP server:
When I run the However, when I run E2E tests, it's not possible to reach How to set static port in both cases? Actual pod manifests are the same:
For E2E tests run:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You should be able to set "DcpPublisher:RandomizePorts" to false. var appHost = await DistributedApplicationTestingBuilder.CreateAsync<Projects.AspireApp69_AppHost>();
appHost.Configuration["DcpPublisher:RandomizePorts"] = "false"; |
Beta Was this translation helpful? Give feedback.
You should be able to set "DcpPublisher:RandomizePorts" to false.