mirror of
				https://github.com/moby/moby.git
				synced 2022-11-09 12:21:53 -05:00 
			
		
		
		
	use t.Fatal() to output the err message where the values used for formatting
text does not appear to contain a placeholder Signed-off-by: Helen Xie <chenjg@harmonycloud.cn>
This commit is contained in:
		
							parent
							
								
									25500d56a5
								
							
						
					
					
						commit
						2a8d6368d4
					
				
					 22 changed files with 75 additions and 73 deletions
				
			
		| 
						 | 
				
			
			@ -43,15 +43,15 @@ func TestReadAll(t *testing.T) {
 | 
			
		|||
	}
 | 
			
		||||
 | 
			
		||||
	if di[0] != "test1" {
 | 
			
		||||
		t.Fatalf("First element is not test1")
 | 
			
		||||
		t.Fatal("First element is not test1")
 | 
			
		||||
	}
 | 
			
		||||
	if di[1] != "/test2" {
 | 
			
		||||
		t.Fatalf("Second element is not /test2")
 | 
			
		||||
		t.Fatal("Second element is not /test2")
 | 
			
		||||
	}
 | 
			
		||||
	if di[2] != "/a/file/here" {
 | 
			
		||||
		t.Fatalf("Third element is not /a/file/here")
 | 
			
		||||
		t.Fatal("Third element is not /a/file/here")
 | 
			
		||||
	}
 | 
			
		||||
	if di[3] != "lastfile" {
 | 
			
		||||
		t.Fatalf("Fourth element is not lastfile")
 | 
			
		||||
		t.Fatal("Fourth element is not lastfile")
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue