Skip to content

Commit

Permalink
Fix test.
Browse files Browse the repository at this point in the history
We need to release this reference *before* the end of the function.
I really feel like Fulfill should take ownership here...
  • Loading branch information
zenhack committed Mar 16, 2023
1 parent 55bfe9c commit 1251704
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpc/senderpromise_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ func TestResolveUnimplementedDrop(t *testing.T) {
pp := testcapnp.Empty_ServerToClient(emptyShutdowner{
onShutdown: onShutdown,
})
defer pp.Release()
r.Fulfill(pp)
pp.Release()
}
// 8. Receive resolve, send unimplemented
{
Expand Down

0 comments on commit 1251704

Please sign in to comment.