add ports flag to k8scan

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
Jess Frazelle
2018-07-13 18:15:51 -04:00
parent 2d54ed719f
commit 9c8aba5125
3 changed files with 21 additions and 19 deletions

View File

@@ -1,8 +1,9 @@
package main
import (
"reflect"
"testing"
"github.com/google/go-cmp/cmp"
)
func TestARINResponse(t *testing.T) {
@@ -54,7 +55,7 @@ func TestParsePortRange(t *testing.T) {
if err := i.Set(testFunc.given); err != nil {
t.Fatal(err)
}
if reflect.DeepEqual(testFunc.expected, i) {
if !cmp.Equal(testFunc.expected, i) {
t.Fatalf("expected: %#v\ngot: %#v", testFunc.expected, i)
}
}