Fix tests

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
This commit is contained in:
Jakub Sztandera 2019-07-26 21:07:19 +02:00
parent 0e35240fe9
commit fd80c1e355
2 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,7 @@
package actors_test
import (
"context"
"encoding/binary"
"testing"
@ -84,7 +85,7 @@ func TestVMInvokeMethod(t *testing.T) {
Value: types.NewInt(0),
}
ret, err := vm.ApplyMessage(msg)
ret, err := vm.ApplyMessage(context.TODO(), msg)
if err != nil {
t.Fatal(err)
}
@ -128,7 +129,7 @@ func TestStorageMarketActorCreateMiner(t *testing.T) {
Value: types.NewInt(0),
}
ret, err := vm.ApplyMessage(msg)
ret, err := vm.ApplyMessage(context.TODO(), msg)
if err != nil {
t.Fatal(err)
}

View File

@ -77,7 +77,7 @@ func NewHarness(t *testing.T) *Harness {
func (h *Harness) Execute() *state.StateTree {
for i, step := range h.Steps {
h.currStep = i
ret, err := h.vm.ApplyMessage(&step.M)
ret, err := h.vm.ApplyMessage(context.TODO(), &step.M)
if step.Err != nil {
step.Err(h.t, err)
} else {