test: wait for devcontainer readiness (#25567)

This commit is contained in:
Danielle Maywood
2026-05-22 13:55:21 +01:00
committed by GitHub
parent 3a2a97602e
commit 5deab9f721
3 changed files with 84 additions and 12 deletions
+2 -11
View File
@@ -218,17 +218,8 @@ func Test_ResolveRequest(t *testing.T) {
_ = agenttest.New(t, client.URL, agentAuthToken)
resources := coderdtest.AwaitWorkspaceAgents(t, client, workspace.ID, agentName)
agentID := uuid.Nil
for _, resource := range resources {
for _, agnt := range resource.Agents {
if agnt.Name == agentName {
agentID = agnt.ID
break
}
}
}
require.NotEqual(t, uuid.Nil, agentID)
agent := coderdtest.RequireWorkspaceAgentByName(t, resources, agentName)
agentID := agent.ID
// Reset audit logs so cleanup check can pass.
connLogger.Reset()