aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/mock-servers/mock-plugin-blocklist.ts
diff options
context:
space:
mode:
Diffstat (limited to 'shared/extra-utils/mock-servers/mock-plugin-blocklist.ts')
-rw-r--r--shared/extra-utils/mock-servers/mock-plugin-blocklist.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/shared/extra-utils/mock-servers/mock-plugin-blocklist.ts b/shared/extra-utils/mock-servers/mock-plugin-blocklist.ts
index 6f66bf4f0..6a71532b5 100644
--- a/shared/extra-utils/mock-servers/mock-plugin-blocklist.ts
+++ b/shared/extra-utils/mock-servers/mock-plugin-blocklist.ts
@@ -1,6 +1,7 @@
1import express, { Request, Response } from 'express' 1import express, { Request, Response } from 'express'
2import { Server } from 'http' 2import { Server } from 'http'
3import { randomInt } from '@shared/core-utils' 3import { randomInt } from '@shared/core-utils'
4import { terminateServer } from './utils'
4 5
5type BlocklistResponse = { 6type BlocklistResponse = {
6 data: { 7 data: {
@@ -32,6 +33,6 @@ export class MockBlocklist {
32 } 33 }
33 34
34 terminate () { 35 terminate () {
35 if (this.server) this.server.close() 36 return terminateServer(this.server)
36 } 37 }
37} 38}