Skip to content

Commit

Permalink
Fix upstream DNS tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hurricanehrndz committed Oct 1, 2024
1 parent 5dc65bc commit dc0cfc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/internal/dns/upstream_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func TestUpstreamResolver_DeactivationReactivation(t *testing.T) {
return
}

if !resolver.disabled {
if !resolver.disabled.Load() {
t.Errorf("resolver should be Disabled")
return
}
Expand All @@ -172,7 +172,7 @@ func TestUpstreamResolver_DeactivationReactivation(t *testing.T) {
return
}

if resolver.disabled {
if resolver.disabled.Load() {
t.Errorf("should be enabled")
}
}

0 comments on commit dc0cfc4

Please sign in to comment.