mirror of https://github.com/helm/helm
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
221 B
16 lines
221 B
9 years ago
|
package kube
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestAvailablePort(t *testing.T) {
|
||
|
port, err := getAvailablePort()
|
||
|
if err != nil {
|
||
|
t.Fatal(err)
|
||
|
}
|
||
|
if port < 1 {
|
||
|
t.Fatalf("generated port should be > 1, got %d", port)
|
||
|
}
|
||
|
}
|