clientv3test

package
v3.0.0-...-1ca2656 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

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.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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