Permalink
Browse files

Add tests for pause-tube

  • Loading branch information...
1 parent de2efcb commit 993a44d09c62dea315814274439939fb53328cc8 @gbarr gbarr committed Nov 5, 2009
Showing with 104 additions and 0 deletions.
  1. +16 −0 sh-tests/pause-tube.commands
  2. +88 −0 sh-tests/pause-tube.expected
@@ -0,0 +1,16 @@
+put 0 1 1 1
+1
+put 0 1 1 1
+2
+stats-tube default
+pause-tube default 10
+stats-tube default
+pause-tube default 0
+reserve
+delete 1
+pause-tube default 3
+stats-tube default
+stats-job 2
+reserve
+stats-job 2
+quit
@@ -0,0 +1,88 @@
+INSERTED 1
+INSERTED 2
+OK 251
+---
+name: default
+current-jobs-urgent: 0
+current-jobs-ready: 0
+current-jobs-reserved: 0
+current-jobs-delayed: 2
+current-jobs-buried: 0
+total-jobs: 2
+current-using: 1
+current-watching: 1
+current-waiting: 0
+cmd-pause-tube: 0
+pause: 0
+pause-time-left: 0
+
+PAUSED
+OK 252
+---
+name: default
+current-jobs-urgent: 0
+current-jobs-ready: 0
+current-jobs-reserved: 0
+current-jobs-delayed: 2
+current-jobs-buried: 0
+total-jobs: 2
+current-using: 1
+current-watching: 1
+current-waiting: 0
+cmd-pause-tube: 1
+pause: 10
+pause-time-left: 9
+
+PAUSED
+RESERVED 1 1
+1
+DELETED
+PAUSED
+OK 251
+---
+name: default
+current-jobs-urgent: 1
+current-jobs-ready: 1
+current-jobs-reserved: 0
+current-jobs-delayed: 0
+current-jobs-buried: 0
+total-jobs: 2
+current-using: 1
+current-watching: 1
+current-waiting: 0
+cmd-pause-tube: 3
+pause: 3
+pause-time-left: 2
+
+OK 131
+id: 2
+tube: default
+state: ready
+pri: 0
+age: 1
+delay: 1
+ttr: 1
+time-left: 0
+reserves: 0
+timeouts: 0
+releases: 0
+buries: 0
+kicks: 0
+
+RESERVED 2 1
+2
+OK 134
+id: 2
+tube: default
+state: reserved
+pri: 0
+age: 4
+delay: 1
+ttr: 1
+time-left: 0
+reserves: 1
+timeouts: 0
+releases: 0
+buries: 0
+kicks: 0
+

0 comments on commit 993a44d

Please sign in to comment.