etcdtest

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestEtcdClient

func TestEtcdClient(t testing.TB) (*clientv3.Client, string)

TestEtcdClient connects to the shared etcd instance at etcd:2379 and returns a client along with a random prefix for test isolation. It verifies etcd is reachable with a short timeout so tests fail fast with a clear message when run outside the dev environment.

Cleanup is registered automatically: all keys under the prefix are deleted and the client is closed when the test finishes.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL