@@ -38,13 +38,15 @@ func setupTestLedger(chainid string) {
3838func TestTrustedLedgerCC_Init (t * testing.T ) {
3939 tlcc := createTlcc ()
4040 stub := shim .NewMockStub ("tlcc" , tlcc )
41+ stub .ChannelID = "mychannel"
4142 setupTestLedger ("mychannel" )
4243 th .CheckInit (t , stub , [][]byte {})
4344}
4445
4546func TestTrustedLedgerCC_JoinChannel (t * testing.T ) {
4647 tlcc := createTlcc ()
4748 stub := shim .NewMockStub ("tlcc" , tlcc )
49+ stub .ChannelID = "mychannel"
4850
4951 setupTestLedger ("mychannel" )
5052 th .CheckInit (t , stub , [][]byte {})
@@ -54,6 +56,7 @@ func TestTrustedLedgerCC_JoinChannel(t *testing.T) {
5456func TestTrustedLedgerCC_GetReport (t * testing.T ) {
5557 tlcc := createTlcc ()
5658 stub := shim .NewMockStub ("tlcc" , tlcc )
59+ stub .ChannelID = "mychannel"
5760
5861 setupTestLedger ("mychannel" )
5962 th .CheckInit (t , stub , [][]byte {})
@@ -73,6 +76,7 @@ func TestTrustedLedgerCC_GetReport(t *testing.T) {
7376func TestTrustedLedgerCC_GetStateCMAC (t * testing.T ) {
7477 tlcc := createTlcc ()
7578 stub := shim .NewMockStub ("tlcc" , tlcc )
79+ stub .ChannelID = "mychannel"
7680
7781 setupTestLedger ("mychannel" )
7882 th .CheckInit (t , stub , [][]byte {})
0 commit comments