Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTestConfig ¶
NewTestConfig returns a configuration for an embedded etcd server. The configuration is based on embed.NewConfig(), with the following adjustments:
- sets UnsafeNoFsync = true to improve test performance (only reasonable in a test-only single-member server we never intend to restart or keep data from)
- uses free ports for client and peer listeners
- cleans up the data directory on test termination
- silences server logs other than errors
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.