Cleanup lint

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
This commit is contained in:
Jakub Sztandera 2019-07-16 18:49:48 +02:00
parent d373f78326
commit 4f8326f711
2 changed files with 12 additions and 4 deletions

View File

@ -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)
} }

View File

@ -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)
} }