fixed the test

This commit is contained in:
mikespook 2011-05-17 18:22:12 +08:00
parent ecbc4f5945
commit f1d7cdee50

View File

@ -43,6 +43,14 @@ func TestEcho(t * testing.T) {
}
}
func TestResult(t *testing.T) {
if job := worker.Result(); job == nil {
t.Error("Nothing in result.")
} else {
t.Log(job)
}
}
func TestClose(t *testing.T) {
if err := worker.Close(); err != nil {
t.Error(err)