package clientv3test

import "go.etcd.io/etcd/tests/v3/integration/clientv3"

Package clientv3test implements tests built upon embedded etcd, and focuses on correctness of etcd client.

Index

Functions

func IsCanceled

func IsCanceled(err error) bool

func IsClientTimeout

func IsClientTimeout(err error) bool

IsClientTimeout checks reason of the error. In grpc v1.11.3+ dial timeouts can error out with transport.ErrConnClosing. Previously dial timeouts would always error out with context.DeadlineExceeded.

func IsServerCtxTimeout

func IsServerCtxTimeout(err error) bool

IsServerCtxTimeout checks reason of the error. e.g. due to clock drifts in server-side, client context times out first in server-side while original client-side context is not timed out yet

func IsUnavailable

func IsUnavailable(err error) bool

func MustWaitPinReady

func MustWaitPinReady(t *testing.T, cli *clientv3.Client)

MustWaitPinReady waits up to 3-second until connection is up (pin endpoint). Fatal on time-out.

Source Files

doc.go util.go

Directories

PathSynopsis
integration/clientv3/concurrency
integration/clientv3/connectivity
integration/clientv3/examples
integration/clientv3/experimental
integration/clientv3/experimental/recipes
integration/clientv3/lease
integration/clientv3/naming
integration/clientv3/snapshot
Version
v3.6.0 (latest)
Published
May 15, 2025
Platform
js/wasm
Imports
10 packages
Last checked
1 day ago

Tools for package owners.