teleport/tool/common
Zac Bergquist 5fe9617fcf
Fix cluster alerts timeout (#25261)
tsh shows clusters alerts for both `tsh login` and `tsh status`.
We intentionally used a short (500ms) timeout to avoid slowing down
`tsh status` which was previously an "offline" command.

As a side effect, cluster alerts would not always show on login if
they took longer than 500ms to fetch.

This change ensures that we always wait for cluster alerts to come
back for `tsh login`, but we still enforce a short timeout for the
`tsh status` command. (The timeout was increased slightly since the
context now wraps the entire command and not just the cluster alerts
call)

Fixes #25239
2023-04-27 22:12:14 +00:00
..
common.go Fix cluster alerts timeout (#25261) 2023-04-27 22:12:14 +00:00
common_test.go Enable GCI linter (#17894) 2022-10-28 20:20:28 +00:00