This commit is contained in:
Xing Xing 2013-04-11 20:16:41 +08:00
parent f9447f9fc6
commit 89ef28fb9b

View File

@ -31,7 +31,7 @@ func ToUpper(job *worker.Job) ([]byte, error) {
}
func Sleep(job *worker.Job) ([]byte, error) {
time.Sleep(time.Second)
time.Sleep(time.Second * 5)
return nil, nil
}
@ -82,6 +82,7 @@ func TestJobs(t *testing.T) {
{
handle := c.DoBg("Sleep", nil, client.JOB_NORMAL)
time.Sleep(time.Second)
status := c.Status(handle)
if !status.Known {