multi: fix newly detected linter issues

This commit is contained in:
Oliver Gugger
2022-02-07 13:58:25 +01:00
parent 369627901f
commit ffee7d1bcf
30 changed files with 106 additions and 118 deletions

View File

@@ -58,11 +58,11 @@ func assertEngineExecution(t *testing.T, testNum int, valid bool,
done, err = vm.Step()
if err != nil && valid {
fmt.Println(debugBuf.String())
t.Log(debugBuf.String())
t.Fatalf("spend test case #%v failed, spend "+
"should be valid: %v", testNum, err)
} else if err == nil && !valid && done {
fmt.Println(debugBuf.String())
t.Log(debugBuf.String())
t.Fatalf("spend test case #%v succeed, spend "+
"should be invalid: %v", testNum, err)
}
@@ -79,7 +79,7 @@ func assertEngineExecution(t *testing.T, testNum int, valid bool,
validity = "valid"
}
fmt.Println(debugBuf.String())
t.Log(debugBuf.String())
t.Fatalf("%v spend test case #%v execution ended with: %v", validity, testNum, vmErr)
}