Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CDTmpDir ¶
CDTmpDir changes directory to a temp directory. It returns the path to the temp dir and a function you should defer to change back to your original directory. The tmp dir will be automatically deleted when tests end.
func PrepareWrConfig ¶
func PrepareWrConfig(t *testing.T) (jobqueue.ServerConfig, func())
PrepareWrConfig creates a temp directory, changes to that directory, creates a wr config file with available ports set, then returns a ServerConfig with that configuration. It also returns a function you should defer, which changes directory back.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.