Skip to content

Commit

Permalink
Merge pull request #4397 from mloiseleur/fix/ci
Browse files Browse the repository at this point in the history
chore(ci): fix failing test
  • Loading branch information
k8s-ci-robot committed Apr 23, 2024
2 parents de08c4e + cbd281f commit a3c056f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions source/service_test.go
Expand Up @@ -173,6 +173,11 @@ func testServiceSourceNewServiceSource(t *testing.T) {

// testServiceSourceEndpoints tests that various services generate the correct endpoints.
func testServiceSourceEndpoints(t *testing.T) {
exampleDotComIP4, err := net.DefaultResolver.LookupNetIP(context.Background(), "ip4", "example.com")
assert.NoError(t, err)
exampleDotComIP6, err := net.DefaultResolver.LookupNetIP(context.Background(), "ip6", "example.com")
assert.NoError(t, err)

t.Parallel()

for _, tc := range []struct {
Expand Down Expand Up @@ -406,8 +411,8 @@ func testServiceSourceEndpoints(t *testing.T) {
serviceTypesFilter: []string{},
resolveLoadBalancerHostname: true,
expected: []*endpoint.Endpoint{
{DNSName: "foo.example.org", RecordType: endpoint.RecordTypeA, Targets: endpoint.Targets{"93.184.216.34"}},
{DNSName: "foo.example.org", RecordType: endpoint.RecordTypeAAAA, Targets: endpoint.Targets{"2606:2800:220:1:248:1893:25c8:1946"}},
{DNSName: "foo.example.org", RecordType: endpoint.RecordTypeA, Targets: endpoint.Targets{exampleDotComIP4[0].String()}},
{DNSName: "foo.example.org", RecordType: endpoint.RecordTypeAAAA, Targets: endpoint.Targets{exampleDotComIP6[0].String()}},
},
},
{
Expand Down

0 comments on commit a3c056f

Please sign in to comment.