mirror of
https://github.com/minio/mc.git
synced 2025-11-12 01:02:26 +03:00
Fix test cases where cp and mirror would fail
- globalQuietFlag and globalJSONFlag should be checked in conjunction for terminal features to be disabled. Otherwise ioctl fails for calculating the term size. - Avoid unnecessary scoping for probe, it has two different error sets now
This commit is contained in:
@@ -67,7 +67,7 @@ func (s *CmdTestSuite) TestLSCmd(c *C) {
|
||||
func (s *CmdTestSuite) TestLSContext(c *C) {
|
||||
err := app.Run([]string{os.Args[0], "ls", server.URL + "/bucket"})
|
||||
c.Assert(err, IsNil)
|
||||
c.Assert(console.IsExited, Equals, false)
|
||||
c.Assert(console.IsError, Equals, false)
|
||||
|
||||
err = app.Run([]string{os.Args[0], "ls", server.URL + "/invalid"})
|
||||
c.Assert(err, IsNil)
|
||||
|
||||
Reference in New Issue
Block a user