Skip to content

Commit

Permalink
Fix dummy targets tests
Browse files Browse the repository at this point in the history
  • Loading branch information
manugarg committed Oct 31, 2023
1 parent 7edd723 commit 97924de
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions targets/targets_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,22 +119,7 @@ func TestDummyTargets(t *testing.T) {
t.Fatalf("New(...) Unexpected errors %v", err)
}
got := endpoint.NamesFromEndpoints(tgts.ListEndpoints())
want := []string{""}
if !reflect.DeepEqual(got, []string{""}) {
t.Errorf("tgts.List() = %q, want %q", got, want)
}
ip, err := tgts.Resolve(got[0], 4)
if err != nil {
t.Errorf("tgts.Resolve(%q, 4) Unexpected errors %v", got[0], err)
} else if !ip.IsUnspecified() {
t.Errorf("tgts.Resolve(%q, 4) = %v is specified, expected unspecified", got[0], ip)
}
ip, err = tgts.Resolve(got[0], 6)
if err != nil {
t.Errorf("tgts.Resolve(%q, 6) Unexpected errors %v", got[0], err)
} else if !ip.IsUnspecified() {
t.Errorf("tgts.Resolve(%q, 6) = %v is specified, expected unspecified", got[0], ip)
}
assert.Equal(t, []string{}, got, "Unexpected targets")
}

type testTargetsType struct {
Expand Down

0 comments on commit 97924de

Please sign in to comment.