From 3f9197f978578456633522076f1171ebeec126c1 Mon Sep 17 00:00:00 2001 From: David Luna Date: Tue, 1 Aug 2023 01:08:45 +0200 Subject: [PATCH] chore: fix assertion for system.detected_hostname (#3522) 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. --- test/agent.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/agent.test.js b/test/agent.test.js index 447d46f1d7..5e3e1c62e7 100644 --- a/test/agent.test.js +++ b/test/agent.test.js @@ -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;