Skip to content

Commit 1fb0669

Browse files
committed
🧼 clean: ν•„μš”μ—†λŠ” await μ‚­μ œ
1 parent 54ac370 commit 1fb0669

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

β€Žemail-worker/test/unit/rabbitmqService.spec.tsβ€Ž

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ describe('RabbitmqService unit test', () => {
134134
const onMessage = jest.fn();
135135

136136
mockChannel.consume.mockImplementation(async (q, callback) => {
137-
await callback(null);
137+
callback(null);
138138
return { consumerTag: 'test-consumer-tag' };
139139
});
140140

@@ -159,7 +159,7 @@ describe('RabbitmqService unit test', () => {
159159
},
160160
} as any;
161161

162-
await callback(mockMessage);
162+
callback(mockMessage);
163163
return { consumerTag: 'test-consumer-tag' };
164164
});
165165

@@ -186,7 +186,7 @@ describe('RabbitmqService unit test', () => {
186186
},
187187
} as any;
188188

189-
await callback(capturedMessage);
189+
callback(capturedMessage);
190190
return { consumerTag: 'test-consumer-tag' };
191191
});
192192

@@ -216,7 +216,7 @@ describe('RabbitmqService unit test', () => {
216216
},
217217
} as any;
218218

219-
await callback(capturedMessage);
219+
callback(capturedMessage);
220220
return { consumerTag: 'test-consumer-tag' };
221221
});
222222

0 commit comments

Comments
Β (0)