Skip to content

Commit

Permalink
fix(postalSvc): exit seat so getPayouts() resolves
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc committed Dec 28, 2023
1 parent 14c1f0e commit 258ff5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions contract/src/postalSvc.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export const start = zcf => {
Promise.resolve(pmtP).then(pmt => E(depositFacet).receive(pmt)),
),
);
seat.exit();
return `sent ${keys(payouts).join(', ')}`;
};

Expand Down
1 change: 1 addition & 0 deletions contract/test/test-postalSvc.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ test('deliver payment using address', async t => {
const result = await E(seat).getOfferResult();
t.is(result, 'sent Invitation, Payment');
t.deepEqual(rxd, [pmt1, pmt2, pmt3]);
const done = await E(seat).getPayouts();
}
});
test.todo('partial failure: send N+1 payments where >= 1 delivery fails');

0 comments on commit 258ff5b

Please sign in to comment.