mirror of https://github.com/poanetwork/gecko.git
fixed locking bug in tests
This commit is contained in:
parent
b41d6ef95a
commit
2fa86ef49c
|
@ -706,6 +706,8 @@ func TestIssueNFT(t *testing.T) {
|
|||
issuer := make(chan common.Message, 1)
|
||||
|
||||
ctx.Lock.Lock()
|
||||
defer ctx.Lock.Unlock()
|
||||
|
||||
vm := &VM{}
|
||||
err := vm.Initialize(
|
||||
ctx,
|
||||
|
@ -862,6 +864,8 @@ func TestIssueProperty(t *testing.T) {
|
|||
issuer := make(chan common.Message, 1)
|
||||
|
||||
ctx.Lock.Lock()
|
||||
defer ctx.Lock.Unlock()
|
||||
|
||||
vm := &VM{}
|
||||
err := vm.Initialize(
|
||||
ctx,
|
||||
|
|
Loading…
Reference in New Issue