Commit 73f5af8
authored
test: fix TestAgent_Lifecycle/ShutdownScriptOnce to wait for stats (coder#17387)
fixes: coder/internal#576
TestAgent_Lifecycle/ShutdownScriptOnce hits error logs which cause test
failures. These logs are legit errors and have to do with shutting down
the agent before it has fully come up.
This PR changes the test to wait for the agent to send stats (a good
indicator that it's fully up, and beyond the errors that have triggered
test failures in past) before closing it.1 parent d8fcb06 commit 73f5af8
1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1650 | 1650 | | |
1651 | 1651 | | |
1652 | 1652 | | |
| 1653 | + | |
1653 | 1654 | | |
1654 | 1655 | | |
| 1656 | + | |
1655 | 1657 | | |
1656 | 1658 | | |
1657 | 1659 | | |
| |||
1670 | 1672 | | |
1671 | 1673 | | |
1672 | 1674 | | |
1673 | | - | |
| 1675 | + | |
1674 | 1676 | | |
1675 | 1677 | | |
1676 | 1678 | | |
| |||
1695 | 1697 | | |
1696 | 1698 | | |
1697 | 1699 | | |
| 1700 | + | |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
1698 | 1705 | | |
1699 | 1706 | | |
1700 | 1707 | | |
| |||
0 commit comments