Skip to content

Commit 3c06ead

Browse files
committed
fix: CI
Signed-off-by: ananeridev <ananeri32@hotmail.com>
1 parent 84430fd commit 3c06ead

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/e2e/payment.test.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,11 @@ beforeEach(async () => {
7373
return runSeed()
7474
})
7575

76-
after( async () => _testServer.close())
76+
after( async () => {
77+
if (_testServer && _testServer.close) {
78+
_testServer.close()
79+
}
80+
})
7781

7882
test('POST /payments - should create payment with valid data', async () => {
7983
const result = await validatePaymentCreation(paymentPayloads.valid, 'test-valid-1')

0 commit comments

Comments
 (0)