Cleanup lint
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
This commit is contained in:
parent
d373f78326
commit
4f8326f711
@ -59,7 +59,11 @@ func TestStorageMarketCreateMiner(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
smas := &StorageMinerActorState{}
|
smas := &StorageMinerActorState{}
|
||||||
cbor.DecodeInto(hblock.RawData(), smas)
|
err = cbor.DecodeInto(hblock.RawData(), smas)
|
||||||
|
if err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
|
||||||
if smas.Owner != h.From {
|
if smas.Owner != h.From {
|
||||||
t.Fatalf("Owner should be %s, but is %s", h.From, smas.Owner)
|
t.Fatalf("Owner should be %s, but is %s", h.From, smas.Owner)
|
||||||
}
|
}
|
||||||
|
@ -59,9 +59,9 @@ func NewHarness(t *testing.T) *Harness {
|
|||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
cs := chain.NewChainStore(h.bs, nil)
|
h.cs = chain.NewChainStore(h.bs, nil)
|
||||||
|
|
||||||
h.vm, err = chain.NewVM(stateroot, 1, maddr, cs)
|
h.vm, err = chain.NewVM(stateroot, 1, maddr, h.cs)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
@ -160,7 +160,11 @@ func TestVMInvokeHarness(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
smas := &StorageMinerActorState{}
|
smas := &StorageMinerActorState{}
|
||||||
cbor.DecodeInto(hblock.RawData(), smas)
|
err = cbor.DecodeInto(hblock.RawData(), smas)
|
||||||
|
if err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
|
||||||
if smas.Owner != h.From {
|
if smas.Owner != h.From {
|
||||||
t.Fatalf("Owner should be %s, but is %s", h.From, smas.Owner)
|
t.Fatalf("Owner should be %s, but is %s", h.From, smas.Owner)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user