Fix tests
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
This commit is contained in:
parent
0e35240fe9
commit
fd80c1e355
@ -1,6 +1,7 @@
|
|||||||
package actors_test
|
package actors_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"context"
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
@ -84,7 +85,7 @@ func TestVMInvokeMethod(t *testing.T) {
|
|||||||
Value: types.NewInt(0),
|
Value: types.NewInt(0),
|
||||||
}
|
}
|
||||||
|
|
||||||
ret, err := vm.ApplyMessage(msg)
|
ret, err := vm.ApplyMessage(context.TODO(), msg)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
@ -128,7 +129,7 @@ func TestStorageMarketActorCreateMiner(t *testing.T) {
|
|||||||
Value: types.NewInt(0),
|
Value: types.NewInt(0),
|
||||||
}
|
}
|
||||||
|
|
||||||
ret, err := vm.ApplyMessage(msg)
|
ret, err := vm.ApplyMessage(context.TODO(), msg)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
@ -77,7 +77,7 @@ func NewHarness(t *testing.T) *Harness {
|
|||||||
func (h *Harness) Execute() *state.StateTree {
|
func (h *Harness) Execute() *state.StateTree {
|
||||||
for i, step := range h.Steps {
|
for i, step := range h.Steps {
|
||||||
h.currStep = i
|
h.currStep = i
|
||||||
ret, err := h.vm.ApplyMessage(&step.M)
|
ret, err := h.vm.ApplyMessage(context.TODO(), &step.M)
|
||||||
if step.Err != nil {
|
if step.Err != nil {
|
||||||
step.Err(h.t, err)
|
step.Err(h.t, err)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user