Skip to content

Commit

Permalink
Fix consul hostname support in main branch.
Browse files Browse the repository at this point in the history
Signed-off-by: Bernd Verst <[email protected]>
  • Loading branch information
berndverst committed Nov 6, 2023
1 parent 686b2bc commit 62193fe
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions nameresolution/consul/consul_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -867,10 +867,9 @@ func TestResolveID(t *testing.T) {
},
},
}
resolver := newResolver(logger.NewLogger("test"), &mock)
resolver.config = testConfig
resolver := newResolver(logger.NewLogger("test"), testConfig, &mock, &registry{}, make(chan struct{}))

addr, _ := resolver.ResolveID(req)
addr, _ := resolver.ResolveID(context.Background(), req)

assert.Equal(t, "localhost:50005", addr)
},
Expand Down

0 comments on commit 62193fe

Please sign in to comment.