Skip to content

Commit 90f652e

Browse files
committed
update import from extension
1 parent 2a43b0b commit 90f652e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/metrics/listener.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import nock from "nock";
22
import mock from "mock-fs";
33

44
import { LogLevel, setLogLevel } from "../utils";
5-
import { AGENT_URL } from "./extension";
5+
import { EXTENSION_URL } from "./extension";
66

77
import { MetricsListener } from "./listener";
88
import StatsDClient from "hot-shots";
@@ -105,7 +105,7 @@ describe("MetricsListener", () => {
105105
expect(spy).toHaveBeenCalledWith(`{"e":1487076708,"m":"my-metric","t":["tag:a","tag:b"],"v":10}\n`);
106106
});
107107
it("always sends metrics to statsD when extension is enabled, ignoring logForwarding=true", async () => {
108-
const flushScope = nock(AGENT_URL).post("/lambda/flush", JSON.stringify({})).reply(200);
108+
const flushScope = nock(EXTENSION_URL).post("/lambda/flush", JSON.stringify({})).reply(200);
109109
mock({
110110
"/opt/extensions/datadog-agent": Buffer.from([0]),
111111
});

0 commit comments

Comments
 (0)