File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -195,7 +195,9 @@ func TestUploadPropertiesComposition(t *testing.T) {
195195 require .Error (t , err )
196196 } else {
197197 require .NoError (t , err )
198- out := strings .Split (outStream .String (), "\n " )
198+ outFiltered := strings .ReplaceAll (outStream .String (), "\r " , "" )
199+ outFiltered = strings .ReplaceAll (outFiltered , "\\ " , "/" )
200+ out := strings .Split (outFiltered , "\n " )
199201 // With verbose disable, the upload will output at least 2 lines:
200202 // - the output of the command (1 or 2 lines)
201203 // - an empty line
@@ -231,7 +233,9 @@ func TestUploadPropertiesComposition(t *testing.T) {
231233 require .Error (t , err )
232234 } else {
233235 require .NoError (t , err )
234- out := strings .Split (outStream .String (), "\n " )
236+ outFiltered := strings .ReplaceAll (outStream .String (), "\r " , "" )
237+ outFiltered = strings .ReplaceAll (outFiltered , "\\ " , "/" )
238+ out := strings .Split (outFiltered , "\n " )
235239 // With verbose enabled, the upload will output at least 3 lines:
236240 // - the first command line that the cli is going to run
237241 // - the output of the first command
You can’t perform that action at this time.
0 commit comments