package
0.0.0-20240917120716-8843776e9f3a
Repository: https://github.com/cossacklabs/acra.git
Documentation: pkg.go.dev
# Functions
CheckConnection connects to the endpoint until success 100 times with delay or fails.
GetDatabaseConfig returns DatabaseConfig for integration tests configured with env variables or default values used for tests/test.py.
GetFreePortForListener open new connection on free port.
GetSourceRootDirectory expects that tests started from root of source code and accessible tests/ssl folder, otherwise try to walk through parents folders and check that it's root of source until find or call t.Fatal It useful because `go test ./...` change working directory recursively to each packages when it compile tests.
TestWithTLS returns true if integration tests should run with TLS configuration.
# Structs
DatabaseConfig stores configuration for test database.