Skip to content

Commit

Permalink
modify case
Browse files Browse the repository at this point in the history
  • Loading branch information
dengwu12 committed Apr 25, 2017
1 parent ec5960d commit 00abf5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ var (

// Run once when the suite starts running
func (s *OssutilCommandSuite) SetUpSuite(c *C) {
os.Stdout = testLogFile
os.Stderr = testLogFile
//os.Stdout = testLogFile
//os.Stderr = testLogFile
testLogger.Println("test command started")
SetUpCredential()
cm.Init()
Expand Down
3 changes: 2 additions & 1 deletion lib/monitor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1093,7 +1093,7 @@ func (s *OssutilCommandSuite) TestRemoveUploadIdProgress(c *C) {
str = strings.ToLower(removeCommand.monitor.getFinishBar(normalExit))
c.Assert(strings.Contains(str, "succeed:"), Equals, true)
c.Assert(strings.Contains(str, "objects"), Equals, false)
c.Assert(strings.Contains(str, fmt.Sprintf("total %d uploadids", num)), Equals, true)
c.Assert(strings.Contains(str, fmt.Sprintf("%d uploadids", num)), Equals, true)
c.Assert(strings.Contains(str, fmt.Sprintf("removed %d uploadids", num)), Equals, true)
c.Assert(strings.Contains(str, "err"), Equals, false)
c.Assert(strings.Contains(strings.TrimSpace(pstr), strings.TrimSpace(str)), Equals, true)
Expand Down Expand Up @@ -1514,6 +1514,7 @@ func (s *OssutilCommandSuite) TestRangeGet(c *C) {
c.Assert(str, Equals, data[1:6])

snap = copyCommand.monitor.getSnapshot()
fmt.Println("&&&&&&&&", snap.transferSize)
c.Assert(copyCommand.monitor.totalSize == int64(5) || !copyCommand.monitor.seekAheadEnd, Equals, true)
c.Assert(copyCommand.monitor.totalNum == int64(1) || !copyCommand.monitor.seekAheadEnd, Equals, true)
c.Assert(snap.transferSize, Equals, int64(5))
Expand Down

0 comments on commit 00abf5d

Please sign in to comment.