@@ -466,21 +466,21 @@ func TestCallbackBulkOperationUpdate(t *testing.T) {
466466 cb .SetOperationalHandler ("ns1" , mcb )
467467
468468 mbi .On ("Name" ).Return ("utblockchain" )
469- mcb .On ("BulkOperationUpdates" , mock .MatchedBy (func (updates []* core.OperationUpdate ) bool {
469+ mcb .On ("BulkOperationUpdates" , mock .Anything , mock . MatchedBy (func (updates []* core.OperationUpdate ) bool {
470470 assert .True (t , updates [0 ].NamespacedOpID == nsOpID &&
471471 updates [0 ].Status == core .OpStatusSucceeded &&
472472 updates [0 ].BlockchainTXID == "tx1" &&
473473 updates [0 ].ErrorMessage == "err" &&
474474 updates [0 ].Plugin == "utblockchain" )
475475
476- assert .True (t , updates [1 ].NamespacedOpID == nsOpID &&
476+ assert .True (t , updates [1 ].NamespacedOpID == nsOpID2 &&
477477 updates [1 ].Status == core .OpStatusSucceeded &&
478- updates [1 ].BlockchainTXID == "tx1 " &&
478+ updates [1 ].BlockchainTXID == "tx2 " &&
479479 updates [1 ].ErrorMessage == "err" &&
480480 updates [1 ].Plugin == "utblockchain" )
481481
482482 return true
483- })).Return ().Once ()
483+ })).Return (nil ).Once ()
484484
485485 cb .BulkOperationUpdates (context .Background (), "ns1" , []* core.OperationUpdate {
486486 {
@@ -489,13 +489,15 @@ func TestCallbackBulkOperationUpdate(t *testing.T) {
489489 BlockchainTXID : "tx1" ,
490490 ErrorMessage : "err" ,
491491 Output : fftypes.JSONObject {},
492+ Plugin : "utblockchain" ,
492493 },
493494 {
494495 NamespacedOpID : nsOpID2 ,
495496 Status : core .OpStatusSucceeded ,
496497 BlockchainTXID : "tx2" ,
497498 ErrorMessage : "err" ,
498499 Output : fftypes.JSONObject {},
500+ Plugin : "utblockchain" ,
499501 },
500502 })
501503
0 commit comments