Skip to content

Commit

Permalink
Use DNS monitor from static GRPC clients configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
fancycode committed Dec 22, 2023
1 parent 59da543 commit 9b3e2da
Show file tree
Hide file tree
Showing 6 changed files with 147 additions and 175 deletions.
4 changes: 2 additions & 2 deletions backend_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func CreateBackendServerWithClusteringForTestFromConfig(t *testing.T, config1 *g
t.Cleanup(func() {
events1.Close()
})
client1 := NewGrpcClientsForTest(t, addr2)
client1, _ := NewGrpcClientsForTest(t, addr2)
hub1, err := NewHub(config1, events1, grpcServer1, client1, nil, r1, "no-version")
if err != nil {
t.Fatal(err)
Expand Down Expand Up @@ -198,7 +198,7 @@ func CreateBackendServerWithClusteringForTestFromConfig(t *testing.T, config1 *g
t.Cleanup(func() {
events2.Close()
})
client2 := NewGrpcClientsForTest(t, addr1)
client2, _ := NewGrpcClientsForTest(t, addr1)
hub2, err := NewHub(config2, events2, grpcServer2, client2, nil, r2, "no-version")
if err != nil {
t.Fatal(err)
Expand Down
2 changes: 1 addition & 1 deletion dns_monitor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ func TestDnsMonitorIP(t *testing.T) {
rec1 := newDnsMonitorReceiverForTest(t)
rec1.Expect(ips, ips, nil, nil)

entry, err := monitor.Add("https://"+ip, rec1.OnLookup)
entry, err := monitor.Add(ip+":12345", rec1.OnLookup)
if err != nil {
t.Fatal(err)
}
Expand Down
Loading

0 comments on commit 9b3e2da

Please sign in to comment.