Skip to content

Commit

Permalink
Implement == for new AgentSettings class
Browse files Browse the repository at this point in the history
Forgot this one, some of our tests relied on it!
  • Loading branch information
ivoanjo committed Jan 2, 2025
1 parent e4f5e19 commit 8aba599
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/datadog/core/configuration/agent_settings_resolver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,16 @@ def url
raise ArgumentError, "Unexpected adapter: #{adapter}"
end
end

def ==(other)
self.class == other.class &&
adapter == other.adapter &&
ssl == other.ssl &&
hostname == other.hostname &&
port == other.port &&
uds_path == other.uds_path &&
timeout_seconds == other.timeout_seconds
end
end

# IPv6 regular expression from
Expand Down

0 comments on commit 8aba599

Please sign in to comment.