From 27aa4bd49266835779098f0bc7c9dbc5d3f4112e Mon Sep 17 00:00:00 2001 From: Ian Denhardt Date: Fri, 3 Feb 2023 23:29:03 -0500 Subject: [PATCH] Fix bug in TestSendDisembargo/SendQueuedResultToCaller Sadly, I don't think this is #426, but I noticed it while hunting that down: we set Which to receiverHosted but then set the SenderHosted field. This patch fixes that. I think we're getting lucky in the test such that it passes anyway because we only ever put one export on the wire so the ID is always zero anyway. --- rpc/level1_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpc/level1_test.go b/rpc/level1_test.go index 46176c27..26a0fb5b 100644 --- a/rpc/level1_test.go +++ b/rpc/level1_test.go @@ -255,8 +255,8 @@ func testSendDisembargo(t *testing.T, sendPrimeTo rpccp.Call_sendResultsTo_Which Content: results.ToPtr(), CapTable: []rpcCapDescriptor{ { - Which: rpccp.CapDescriptor_Which_receiverHosted, - SenderHosted: importID, + Which: rpccp.CapDescriptor_Which_receiverHosted, + ReceiverHosted: importID, }, }, },