hashicorp / hashicorp/consul

Ensure tests that rely on WaitForLeader instead use WaitForTestAgent

Open
#7,048 0 comments 0 reactions 0 assignees View on GitHub
theme/testing
Dominant language
Go
Stars
30.1k
Forks
4.6k
Avg merge
2d 6h
Merged PRs (30d)
43

Description

When we call WaitForLeader immediately after starting a new test agent, following up with service/node/check registrations can fail as the agent can accept requests before the node is registered in the catalog.

In these cases, WaitForLeader must be replaced with WaitForTestAgent.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.