mirror of
https://github.com/tompro/sattle.git
synced 2026-10-26 01:49:58 +00:00
fix(nwc): await durable commits before responses
This commit is contained in:
@@ -71,8 +71,19 @@ describe('service ownership', () => {
|
||||
|
||||
const service = await startService(LINKING_KEY, {
|
||||
assertCurrentOwner: () => undefined,
|
||||
allocateOutputSecrets: () => Promise.resolve([]),
|
||||
mintSignatureKeys: () => [],
|
||||
recoverPendingMints: () => Promise.resolve(),
|
||||
reserveMintOutputSource: () => Promise.resolve(),
|
||||
finalizePaymentReturn: () => Promise.resolve(),
|
||||
getBearers: () => [],
|
||||
getDefaultMint: () => null,
|
||||
persistMintOutput: () => Promise.reject(new Error('unused')),
|
||||
discardMintOutput: () => Promise.reject(new Error('unused')),
|
||||
setMintOutputRetirement: () => Promise.reject(new Error('unused')),
|
||||
finalizeMintOutput: () => Promise.reject(new Error('unused')),
|
||||
finalizeSpentMintOutput: () => Promise.reject(new Error('unused')),
|
||||
commitCarve: () => Promise.reject(new Error('unused')),
|
||||
applyChangeset: () => Promise.resolve(),
|
||||
transport: relay.transport,
|
||||
nowSeconds,
|
||||
@@ -102,8 +113,19 @@ describe('service ownership', () => {
|
||||
LINKING_KEY,
|
||||
{
|
||||
assertCurrentOwner: () => undefined,
|
||||
allocateOutputSecrets: () => Promise.resolve([]),
|
||||
mintSignatureKeys: () => [],
|
||||
recoverPendingMints: () => Promise.resolve(),
|
||||
reserveMintOutputSource: () => Promise.resolve(),
|
||||
finalizePaymentReturn: () => Promise.resolve(),
|
||||
getBearers: () => [],
|
||||
getDefaultMint: () => null,
|
||||
persistMintOutput: () => Promise.reject(new Error('unused')),
|
||||
discardMintOutput: () => Promise.reject(new Error('unused')),
|
||||
setMintOutputRetirement: () => Promise.reject(new Error('unused')),
|
||||
finalizeMintOutput: () => Promise.reject(new Error('unused')),
|
||||
finalizeSpentMintOutput: () => Promise.reject(new Error('unused')),
|
||||
commitCarve: () => Promise.reject(new Error('unused')),
|
||||
applyChangeset: () => Promise.resolve(),
|
||||
transport: relay.transport,
|
||||
nowSeconds,
|
||||
|
||||
Reference in New Issue
Block a user