forked from yuxh/gearman-go
		
	fixed the test
This commit is contained in:
		
							parent
							
								
									ecbc4f5945
								
							
						
					
					
						commit
						f1d7cdee50
					
				@ -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)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user