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 ¶
- func IsCanceled(err error) bool
- func IsClientTimeout(err error) bool
- func IsServerCtxTimeout(err error) bool
- func IsUnavailable(err error) bool
- func MustWaitPinReady(t *testing.T, cli *clientv3.Client)
Functions ¶
func IsCanceled ¶
func IsClientTimeout ¶
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 ¶
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 MustWaitPinReady ¶
MustWaitPinReady waits up to 3-second until connection is up (pin endpoint). Fatal on time-out.
Source Files ¶
doc.go util.go
Directories ¶
- Version
- v3.6.0 (latest)
- Published
- May 15, 2025
- Platform
- js/wasm
- Imports
- 10 packages
- Last checked
- 1 day ago –
Tools for package owners.