Skip to content

Commit 4ed69aa

Browse files
committed
more renaming
1 parent 8193896 commit 4ed69aa

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/metrics/extension.spec.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ describe("isExtensionRunning", () => {
77
afterEach(() => {
88
mock.restore();
99
});
10-
it("returns true when agent exists and responds", async () => {
10+
it("returns true when extension exists and responds", async () => {
1111
mock({
1212
"/opt/extensions/datadog-agent": Buffer.from([0]),
1313
});
1414
const ran = await isExtensionRunning();
1515
expect(ran).toBeTruthy();
1616
});
17-
it("returns false when agent doesn't exist", async () => {
17+
it("returns false when extension doesn't exist", async () => {
1818
mock({});
1919
const scope = nock(EXTENSION_URL).get("/lambda/hello").replyWithError("Unreachable");
2020
const ran = await isExtensionRunning();
@@ -23,7 +23,7 @@ describe("isExtensionRunning", () => {
2323
});
2424
});
2525
describe("flushExtension", () => {
26-
it("calls flush on the agent", async () => {
26+
it("calls flush on the extension", async () => {
2727
const scope = nock(EXTENSION_URL).post("/lambda/flush", JSON.stringify({})).reply(200);
2828
await flushExtension();
2929
expect(scope.isDone()).toBeTruthy();

src/metrics/extension.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const LOCAL_FLUSH_TIMEOUT_MS = 100;
1010
export async function isExtensionRunning() {
1111
const extensionExists = await fileExists(EXTENSION_PATH);
1212
if (!extensionExists) {
13-
logDebug(`Agent isn't present in sandbox`);
13+
logDebug(`Extension Layer is not present`);
1414
return false;
1515
}
1616
return true;

0 commit comments

Comments
 (0)