Skip to content

Commit

Permalink
test: add extra newline to error message
Browse files Browse the repository at this point in the history
This is a workaround for golang/go#38063,
where Go incorrectly reports test results if the test output doesn't
end in newlines
  • Loading branch information
nicks committed Feb 22, 2021
1 parent 4f2e1e6 commit fa5ef94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/containerupdate/exec_updater_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func TestUpdateContainerRunsFailure(t *testing.T) {
func TestUpdateContainerPermissionDenied(t *testing.T) {
f := newExecFixture(t)

f.kCli.ExecOutputs = []io.Reader{strings.NewReader("tar: app/index.js: Cannot open: File exists")}
f.kCli.ExecOutputs = []io.Reader{strings.NewReader("tar: app/index.js: Cannot open: File exists\n")}
f.kCli.ExecErrors = []error{exec.CodeExitError{Err: fmt.Errorf("command terminated with exit code 2"), Code: 1}}

err := f.ecu.UpdateContainer(f.ctx, TestContainerInfo, newReader("hello world"), nil, cmds, true)
Expand Down

0 comments on commit fa5ef94

Please sign in to comment.