forked from TrueCloudLab/neoneo-go
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
|
@ -51,9 +51,7 @@ func vmAndCompile(t *testing.T, src string) *vm.VM {
|
|||
vm.RegisterInteropGetter(storePlugin.getInterop)
|
||||
|
||||
b, err := compiler.Compile(strings.NewReader(src))
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
require.NoError(t, err)
|
||||
vm.Load(b)
|
||||
return vm
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue