Skip to content

Commit 196db23

Browse files
committed
Reduced test timeouts
1 parent 9a4fc51 commit 196db23

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

packages/tracing/tests/e2e/tracer.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ describe('Tracer integration tests', () => {
8888
await lambdaClient.invoke({
8989
FunctionName: functionName,
9090
Payload: JSON.stringify({
91-
throw: true ? i === invocations - 1 : false, // only last invocation should throw
91+
throw: i === invocations ? true : false, // only last invocation should throw
9292
}),
9393
}).promise();
9494
}
@@ -97,7 +97,7 @@ describe('Tracer integration tests', () => {
9797
// sleep to allow for traces to be collected
9898
await new Promise((resolve) => setTimeout(resolve, 120000));
9999

100-
}, 900000);
100+
}, 360000); // 6 minutes
101101

102102
afterAll(async () => {
103103

@@ -114,7 +114,7 @@ describe('Tracer integration tests', () => {
114114
});
115115
}
116116

117-
}, 900000);
117+
}, 180000); // 3 minutes
118118

119119
it('Verifies that a when Tracer is used to manually instrument a function all custom traces are generated with correct annotations and metadata', async () => {
120120

@@ -184,7 +184,7 @@ describe('Tracer integration tests', () => {
184184
}
185185
}
186186

187-
}, 900000);
187+
}, 120000); // 2 minutes
188188

189189
it('Verifies that a when Tracer is used as middleware all custom traces are generated with correct annotations and metadata', async () => {
190190

@@ -243,7 +243,7 @@ describe('Tracer integration tests', () => {
243243
}
244244
}
245245

246-
}, 900000);
246+
}, 120000); // 2 minutes
247247

248248
it('Verifies that a when Tracer is used as decorator all custom traces are generated with correct annotations and metadata', async () => {
249249

@@ -323,7 +323,7 @@ describe('Tracer integration tests', () => {
323323
}
324324
}
325325

326-
}, 900000);
326+
}, 120000); // 2 minutes
327327

328328
it('Verifies that a when tracing is disabled no custom traces are generated', async () => {
329329

@@ -347,6 +347,6 @@ describe('Tracer integration tests', () => {
347347
}
348348
}
349349

350-
}, 900000);
350+
}, 120000); // 2 minutes
351351

352352
});

0 commit comments

Comments
 (0)