torrust_tracker_test_helpers::configuration

Function ephemeral

source
pub fn ephemeral() -> Configuration
Expand description

This configuration is used for testing. It generates random config values so they do not collide if you run more than one tracker at the same time.

NOTICE: This configuration is not meant to be used in production.

NOTICE: Port 0 is used for ephemeral ports, which means that the OS will assign a random free port for the tracker to use.

NOTICE: You can change the log threshold to debug to see the logs of the tracker while running the tests. That can be particularly useful when debugging tests.

§Panics

Will panic if it can’t convert the temp file path to string