mirror of
				https://github.com/moby/moby.git
				synced 2022-11-09 12:21:53 -05:00 
			
		
		
		
	add error information to distinguish different test scene
Signed-off-by: lixiaobing10051267 <li.xiaobing1@zte.com.cn>
This commit is contained in:
		
							parent
							
								
									16bcc1afdd
								
							
						
					
					
						commit
						925c1427a8
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -19,7 +19,7 @@ func TestContainerCreateError(t *testing.T) {
 | 
			
		|||
	}
 | 
			
		||||
	_, err := client.ContainerCreate(context.Background(), nil, nil, nil, "nothing")
 | 
			
		||||
	if err == nil || err.Error() != "Error response from daemon: Server error" {
 | 
			
		||||
		t.Fatalf("expected a Server Error, got %v", err)
 | 
			
		||||
		t.Fatalf("expected a Server Error while testing StatusInternalServerError, got %v", err)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// 404 doesn't automagitally means an unknown image
 | 
			
		||||
| 
						 | 
				
			
			@ -28,7 +28,7 @@ func TestContainerCreateError(t *testing.T) {
 | 
			
		|||
	}
 | 
			
		||||
	_, err = client.ContainerCreate(context.Background(), nil, nil, nil, "nothing")
 | 
			
		||||
	if err == nil || err.Error() != "Error response from daemon: Server error" {
 | 
			
		||||
		t.Fatalf("expected a Server Error, got %v", err)
 | 
			
		||||
		t.Fatalf("expected a Server Error while testing StatusNotFound, got %v", err)
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue