Skip to content

Commit

Permalink
Fix #426.
Browse files Browse the repository at this point in the history
It was a bug in the test: we were sending back a return with the
question ID from the bootstrap message, instead of call A. The vast
majority of the time these end up being both zero because the former
gets returned to the pool, but every so often they're different,
triggering the bug.
  • Loading branch information
zenhack committed Feb 6, 2023
1 parent a41a515 commit 0d64a9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpc/level1_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ func testSendDisembargo(t *testing.T, sendPrimeTo rpccp.Call_sendResultsTo_Which
err = pogs.Insert(rpccp.Message_TypeID, capnp.Struct(outMsg.Message), &rpcMessage{
Which: rpccp.Message_Which_return,
Return: &rpcReturn{
AnswerID: bootQID,
AnswerID: qidA,
Which: rpccp.Return_Which_results,
Results: &rpcPayload{
Content: results.ToPtr(),
Expand Down

0 comments on commit 0d64a9f

Please sign in to comment.