Documentation
¶
Index ¶
- func BuildApiBlackBoxWithDBState(t testing_tools.TB, sqlFile string, ...) (http.Handler, account.Manager, chan struct{})
- func BuildApiBlackBoxWithDBStateAndPeerChannel(t testing_tools.TB, sqlFile string) (http.Handler, account.Manager, <-chan *network_map.UpdateMessage)
- func PeerShouldNotReceiveAnyUpdate(t testing_tools.TB, updateMessage <-chan *network_map.UpdateMessage)
- func PeerShouldReceiveAnyUpdate(t testing_tools.TB, updateMessage <-chan *network_map.UpdateMessage) *network_map.UpdateMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildApiBlackBoxWithDBState ¶
func BuildApiBlackBoxWithDBState(t testing_tools.TB, sqlFile string, expectedPeerUpdate *network_map.UpdateMessage, validateUpdate bool) (http.Handler, account.Manager, chan struct{})
func BuildApiBlackBoxWithDBStateAndPeerChannel ¶ added in v0.67.2
func BuildApiBlackBoxWithDBStateAndPeerChannel(t testing_tools.TB, sqlFile string) (http.Handler, account.Manager, <-chan *network_map.UpdateMessage)
BuildApiBlackBoxWithDBStateAndPeerChannel creates the API handler and returns the peer update channel directly so tests can verify updates inline.
func PeerShouldNotReceiveAnyUpdate ¶ added in v0.67.2
func PeerShouldNotReceiveAnyUpdate(t testing_tools.TB, updateMessage <-chan *network_map.UpdateMessage)
PeerShouldNotReceiveAnyUpdate verifies no peer update message is received.
func PeerShouldReceiveAnyUpdate ¶ added in v0.67.2
func PeerShouldReceiveAnyUpdate(t testing_tools.TB, updateMessage <-chan *network_map.UpdateMessage) *network_map.UpdateMessage
PeerShouldReceiveAnyUpdate waits for a peer update message and returns it. Fails the test if no update is received within timeout.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.