Skip to content

Commit 219c11e

Browse files
mvo5supakeen
authored andcommitted
progress: update TestRunOSBuildWithProgressIncorrectJSON
The error message of the images library about incorrect json is more "correct" now by including the trailing \n. This is because of osbuild/images#1978 so lets update the unit test to match the new and more exact error.
1 parent edae41a commit 219c11e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/progress/command_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ done
6464
pbar, err := progress.New("debug")
6565
assert.NoError(t, err)
6666
err = progress.RunOSBuild(pbar, []byte(`{"fake":"manifest"}`), nil, nil)
67-
assert.EqualError(t, err, `error parsing osbuild status, please report a bug and try with "--progress=verbose": cannot scan line "invalid-json": invalid character 'i' looking for beginning of value`)
67+
assert.EqualError(t, err, `error parsing osbuild status, please report a bug and try with "--progress=verbose": cannot scan line "invalid-json\n": invalid character 'i' looking for beginning of value`)
6868

6969
// ensure the SIGINT got delivered
7070
var pathExists = func(p string) bool {

0 commit comments

Comments
 (0)