@@ -33,7 +33,7 @@ func TestHungRequest(t *testing.T) {
3333 }
3434 hosts := mn .Hosts ()
3535
36- os := []Option {testPrefix , DisableAutoRefresh ()}
36+ os := []Option {testPrefix , DisableAutoRefresh (), Mode ( ModeServer ) }
3737 d , err := New (ctx , hosts [0 ], os ... )
3838 if err != nil {
3939 t .Fatal (err )
@@ -217,7 +217,7 @@ func TestNotFound(t *testing.T) {
217217 }
218218 hosts := mn .Hosts ()
219219
220- os := []Option {testPrefix , DisableAutoRefresh ()}
220+ os := []Option {testPrefix , DisableAutoRefresh (), Mode ( ModeServer ) }
221221 d , err := New (ctx , hosts [0 ], os ... )
222222 if err != nil {
223223 t .Fatal (err )
@@ -299,7 +299,7 @@ func TestLessThanKResponses(t *testing.T) {
299299 }
300300 hosts := mn .Hosts ()
301301
302- os := []Option {testPrefix , DisableAutoRefresh ()}
302+ os := []Option {testPrefix , DisableAutoRefresh (), Mode ( ModeServer ) }
303303 d , err := New (ctx , hosts [0 ], os ... )
304304 if err != nil {
305305 t .Fatal (err )
@@ -371,7 +371,7 @@ func TestMultipleQueries(t *testing.T) {
371371 t .Fatal (err )
372372 }
373373 hosts := mn .Hosts ()
374- os := []Option {testPrefix , DisableAutoRefresh ()}
374+ os := []Option {testPrefix , DisableAutoRefresh (), Mode ( ModeServer ) }
375375 d , err := New (ctx , hosts [0 ], os ... )
376376 if err != nil {
377377 t .Fatal (err )
0 commit comments