Skip to content

Commit 7ac8f7e

Browse files
committed
Fixing more test coverage
Signed-off-by: Enrique Lacal <enrique.lacal@kaleido.io>
1 parent e8fbe13 commit 7ac8f7e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

internal/blockchain/common/common_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,5 +501,8 @@ func TestCallbackBulkOperationUpdate(t *testing.T) {
501501
},
502502
})
503503

504+
// No Handler
505+
cb.BulkOperationUpdates(context.Background(), "ns2", []*core.OperationUpdate{})
506+
504507
mcb.AssertExpectations(t)
505508
}

internal/orchestrator/bound_callbacks_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ func TestBoundCallbacks(t *testing.T) {
7878
mom.On("SubmitOperationUpdate", update).Return().Once()
7979
bc.OperationUpdate(update)
8080

81+
ctx := context.Background()
82+
updates := []*core.OperationUpdate{update}
83+
mom.On("SubmitBulkOperationUpdates", ctx, updates).Return(nil).Once()
84+
bc.BulkOperationUpdates(ctx, updates)
85+
8186
mei.On("SharedStorageBatchDownloaded", mss, "payload1", []byte(`{}`)).Return(nil, fmt.Errorf("pop"))
8287
_, err := bc.SharedStorageBatchDownloaded("payload1", []byte(`{}`))
8388
assert.EqualError(t, err, "pop")

0 commit comments

Comments
 (0)