File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 44 "bytes"
55 "context"
66 "fmt"
7+ "io"
78 "os"
89 "time"
910
@@ -409,17 +410,21 @@ var _ = DevSpaceDescribe("localregistry", func() {
409410
410411 // create build command
411412 output := & bytes.Buffer {}
413+ writer := io .MultiWriter (output , os .Stdout )
412414 buildCmd := & cmd.RunPipelineCmd {
413415 GlobalFlags : & flags.GlobalFlags {
414416 NoWarn : true ,
415417 },
416418 Pipeline : "build" ,
417- Log : logpkg .NewStreamLogger (output , output , logrus .DebugLevel ),
419+ Log : logpkg .NewStreamLogger (writer , writer , logrus .DebugLevel ),
418420 }
419421 err = buildCmd .RunDefault (f )
420422 framework .ExpectError (err )
421423 gomega .Expect (output .String ()).To (
422- gomega .ContainSubstring ("UNAUTHORIZED: authentication required" ),
424+ gomega .Or (
425+ gomega .ContainSubstring ("unexpected status code 403" ),
426+ gomega .ContainSubstring ("UNAUTHORIZED: authentication required" ),
427+ ),
423428 )
424429 })
425430
You can’t perform that action at this time.
0 commit comments