Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 48c7af2

Browse files
committed
chore: Fix flaky interceptors test
1 parent 69d0987 commit 48c7af2

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

packages/test/src/test-interceptors.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
/* eslint @typescript-eslint/no-non-null-assertion: 0 */
2+
/**
3+
* E2E Tests for the various SDK interceptors.
4+
* Tests run serially to improve CI reliability..
5+
* @module
6+
*/
7+
28
import test from 'ava';
39
import { v4 as uuid4 } from 'uuid';
410
import { Worker, DefaultLogger } from '@temporalio/worker';
@@ -10,7 +16,7 @@ import { Sleeper } from './interfaces';
1016
import { RUN_INTEGRATION_TESTS } from './helpers';
1117

1218
if (RUN_INTEGRATION_TESTS) {
13-
test('Tracing can be implemented using interceptors', async (t) => {
19+
test.serial('Tracing can be implemented using interceptors', async (t) => {
1420
const taskQueue = 'test-interceptors';
1521
const message = uuid4();
1622

@@ -59,7 +65,7 @@ if (RUN_INTEGRATION_TESTS) {
5965
t.is(result, message);
6066
});
6167

62-
test('WorkflowClientCallsInterceptor intercepts terminate and cancel', async (t) => {
68+
test.serial('WorkflowClientCallsInterceptor intercepts terminate and cancel', async (t) => {
6369
const taskQueue = 'test-interceptor-term-and-cancel';
6470
const message = uuid4();
6571

0 commit comments

Comments
 (0)