mirror of
https://github.com/clearlinux/docker.git
synced 2026-10-04 15:58:39 +00:00
Fix a typo in runtime_test.go: Availalble -> Available
This commit is contained in:
+2
-2
@@ -321,7 +321,7 @@ func TestGet(t *testing.T) {
|
||||
|
||||
}
|
||||
|
||||
func findAvailalblePort(runtime *Runtime, port int) (*Container, error) {
|
||||
func findAvailablePort(runtime *Runtime, port int) (*Container, error) {
|
||||
strPort := strconv.Itoa(port)
|
||||
container, err := NewBuilder(runtime).Create(&Config{
|
||||
Image: GetTestImage(runtime).ID,
|
||||
@@ -355,7 +355,7 @@ func TestAllocatePortLocalhost(t *testing.T) {
|
||||
port += 1
|
||||
log.Println("Trying port", port)
|
||||
t.Log("Trying port", port)
|
||||
container, err = findAvailalblePort(runtime, port)
|
||||
container, err = findAvailablePort(runtime, port)
|
||||
if container != nil {
|
||||
break
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user