Skip to content

Commit 8da21e8

Browse files
committed
fix: adapt bb socket port to next lint
1 parent 3264e75 commit 8da21e8

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

barretenberg/ts/bb.js/src/bb_backends/node/native_socket.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { jest } from '@jest/globals';
22
import * as fs from 'fs';
33
import * as os from 'os';
44
import * as path from 'path';
5+
56
import { BarretenbergNativeSocketAsyncBackend } from './native_socket.js';
67

78
jest.setTimeout(30_000);

barretenberg/ts/bb.js/src/bb_backends/node/native_socket.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,10 +281,11 @@ export class BarretenbergNativeSocketAsyncBackend implements IMsgpackBackendAsyn
281281
});
282282
}
283283

284-
async destroy(): Promise<void> {
284+
destroy(): Promise<void> {
285285
this.failAllPending(new Error('Backend connection closed'));
286286
// Don't try to unlink socket - bb owns it and will clean it up
287287
this.process.kill('SIGTERM');
288288
this.process.removeAllListeners();
289+
return Promise.resolve();
289290
}
290291
}

0 commit comments

Comments
 (0)