Skip to content

Commit ea03009

Browse files
Merge pull request #5 from mbrandenburger/master
Fix can open ledger
2 parents f3eaf44 + 53e0845 commit ea03009

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tlcc/tlcc_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,15 @@ func setupTestLedger(chainid string) {
3838
func 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

4546
func 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) {
5456
func 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) {
7376
func 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

Comments
 (0)