Просмотр исходного кода

Better test error message

Docker-DCO-1.1-Signed-off-by: Andy Kipp <andy@rstudio.com> (github: kippandrew)
Andy Kipp 11 лет назад
Родитель
Сommit
7a1db291fc
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      runtime/networkdriver/portallocator/portallocator_test.go

+ 1 - 1
runtime/networkdriver/portallocator/portallocator_test.go

@@ -186,6 +186,6 @@ func TestPortAllocation(t *testing.T) {
 	port2, err := RequestPort(ip, "tcp", port+1)
 	port3, err := RequestPort(ip, "tcp", 0)
 	if port3 == port2 {
-		t.Fatal("A dynamic port should never allocate a used port")
+		t.Fatal("Requesting a dynamic port should never allocate a used port")
 	}
 }