cmd/cli: perform leaking queries in non-cd mode

This commit is contained in:
Cuong Manh Le
2024-12-13 14:41:46 +07:00
committed by Cuong Manh Le
parent 89f7874fc6
commit cb49d0d947
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -75,6 +75,7 @@ func Test_canonicalName(t *testing.T) {
func Test_prog_upstreamFor(t *testing.T) {
cfg := testhelper.SampleConfig(t)
cfg.Service.LeakOnUpstreamFailure = func(v bool) *bool { return &v }(false)
p := &prog{cfg: cfg}
p.um = newUpstreamMonitor(p.cfg)
p.lanLoopGuard = newLoopGuard()