test: Fix cli delete test (#6183)

We were waiting for Cleaning Up which never appeared:

https://github.com/coder/coder/actions/runs/4163971602/jobs/7205007285
This commit is contained in:
Mathias Fredriksson
2023-02-13 16:54:38 +02:00
committed by GitHub
parent a064678b8a
commit d355783faa

View File

@ -39,7 +39,7 @@ func TestDelete(t *testing.T) {
assert.ErrorIs(t, err, io.EOF)
}
}()
pty.ExpectMatch("Cleaning Up")
pty.ExpectMatch("workspace has been deleted")
<-doneChan
})
@ -68,7 +68,7 @@ func TestDelete(t *testing.T) {
assert.ErrorIs(t, err, io.EOF)
}
}()
pty.ExpectMatch("Cleaning Up")
pty.ExpectMatch("workspace has been deleted")
<-doneChan
})
@ -102,7 +102,7 @@ func TestDelete(t *testing.T) {
}
}()
pty.ExpectMatch("Cleaning Up")
pty.ExpectMatch("workspace has been deleted")
<-doneChan
workspace, err = client.Workspace(context.Background(), workspace.ID)