File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -7,14 +7,14 @@ describe("isExtensionRunning", () => {
7
7
afterEach ( ( ) => {
8
8
mock . restore ( ) ;
9
9
} ) ;
10
- it ( "returns true when agent exists and responds" , async ( ) => {
10
+ it ( "returns true when extension exists and responds" , async ( ) => {
11
11
mock ( {
12
12
"/opt/extensions/datadog-agent" : Buffer . from ( [ 0 ] ) ,
13
13
} ) ;
14
14
const ran = await isExtensionRunning ( ) ;
15
15
expect ( ran ) . toBeTruthy ( ) ;
16
16
} ) ;
17
- it ( "returns false when agent doesn't exist" , async ( ) => {
17
+ it ( "returns false when extension doesn't exist" , async ( ) => {
18
18
mock ( { } ) ;
19
19
const scope = nock ( EXTENSION_URL ) . get ( "/lambda/hello" ) . replyWithError ( "Unreachable" ) ;
20
20
const ran = await isExtensionRunning ( ) ;
@@ -23,7 +23,7 @@ describe("isExtensionRunning", () => {
23
23
} ) ;
24
24
} ) ;
25
25
describe ( "flushExtension" , ( ) => {
26
- it ( "calls flush on the agent " , async ( ) => {
26
+ it ( "calls flush on the extension " , async ( ) => {
27
27
const scope = nock ( EXTENSION_URL ) . post ( "/lambda/flush" , JSON . stringify ( { } ) ) . reply ( 200 ) ;
28
28
await flushExtension ( ) ;
29
29
expect ( scope . isDone ( ) ) . toBeTruthy ( ) ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ const LOCAL_FLUSH_TIMEOUT_MS = 100;
10
10
export async function isExtensionRunning ( ) {
11
11
const extensionExists = await fileExists ( EXTENSION_PATH ) ;
12
12
if ( ! extensionExists ) {
13
- logDebug ( `Agent isn't present in sandbox ` ) ;
13
+ logDebug ( `Extension Layer is not present ` ) ;
14
14
return false ;
15
15
}
16
16
return true ;
You can’t perform that action at this time.
0 commit comments