Skip to content

Commit

Permalink
chore: fix assertion for system.detected_hostname (#3522)
Browse files Browse the repository at this point in the history
On some systems the hostname may be set with uppercase letters but
the agent transforms it to lowercase as part of its detection + 
normalisation process.
  • Loading branch information
david-luna authored Jul 31, 2023
1 parent 701f820 commit 3f9197f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/agent.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function assertMetadata(t, payload) {

const system = Object.assign({}, payload.system);
t.ok(
system.detected_hostname.startsWith(os.hostname()),
system.detected_hostname.startsWith(os.hostname().toLowerCase()),
'metadata: system.detected_hostname',
);
delete system.detected_hostname;
Expand Down

0 comments on commit 3f9197f

Please sign in to comment.