mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
test: improve logging around TestAgentScript (#15121)
This commit is contained in:
@@ -123,7 +123,10 @@ func TestAgentScript(t *testing.T) {
|
||||
}
|
||||
|
||||
// Kill the command, wait for the command to yield.
|
||||
require.NoError(t, cmd.Cancel())
|
||||
err := cmd.Cancel()
|
||||
if err != nil {
|
||||
t.Fatalf("unable to cancel the command, see logs:\n%s", output.String())
|
||||
}
|
||||
wg.Wait()
|
||||
|
||||
t.Log(output.String())
|
||||
|
||||
Reference in New Issue
Block a user