tests: replace t.Fatal with require where possible
This makes tests less verbose and unifies the style they are written in.
This commit is contained in:
parent
66f96e3f32
commit
a3dacd3b74
14 changed files with 52 additions and 120 deletions
|
@ -1694,9 +1694,7 @@ func TestSimpleCall(t *testing.T) {
|
|||
result := 12
|
||||
|
||||
prog, err := hex.DecodeString(progStr)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
require.NoError(t, err)
|
||||
vm := load(prog)
|
||||
runVM(t, vm)
|
||||
assert.Equal(t, result, int(vm.estack.Pop().BigInt().Int64()))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue