Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbab17a3

Browse files
authored
test: improve logging aroundTestAgentScript (#15121)
1 parent5ebc748 commitbab17a3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎provisionersdk/agent_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,10 @@ func TestAgentScript(t *testing.T) {
123123
}
124124

125125
// Kill the command, wait for the command to yield.
126-
require.NoError(t,cmd.Cancel())
126+
err:=cmd.Cancel()
127+
iferr!=nil {
128+
t.Fatalf("unable to cancel the command, see logs:\n%s",output.String())
129+
}
127130
wg.Wait()
128131

129132
t.Log(output.String())

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp