aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/mock-servers/mock-object-storage.ts
diff options
context:
space:
mode:
Diffstat (limited to 'shared/extra-utils/mock-servers/mock-object-storage.ts')
-rw-r--r--shared/extra-utils/mock-servers/mock-object-storage.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/shared/extra-utils/mock-servers/mock-object-storage.ts b/shared/extra-utils/mock-servers/mock-object-storage.ts
index f1c5a6123..b6071b2f2 100644
--- a/shared/extra-utils/mock-servers/mock-object-storage.ts
+++ b/shared/extra-utils/mock-servers/mock-object-storage.ts
@@ -4,6 +4,7 @@ import { Server } from 'http'
4import { pipeline } from 'stream' 4import { pipeline } from 'stream'
5import { randomInt } from '@shared/core-utils' 5import { randomInt } from '@shared/core-utils'
6import { ObjectStorageCommand } from '../server' 6import { ObjectStorageCommand } from '../server'
7import { terminateServer } from './utils'
7 8
8export class MockObjectStorage { 9export class MockObjectStorage {
9 private server: Server 10 private server: Server
@@ -37,6 +38,6 @@ export class MockObjectStorage {
37 } 38 }
38 39
39 terminate () { 40 terminate () {
40 if (this.server) this.server.close() 41 return terminateServer(this.server)
41 } 42 }
42} 43}