misc: refactor loop tests to use require where possible

This commit is contained in:
Andras Banki-Horvath 2022-11-29 21:36:14 +01:00
parent bdb4b773ed
commit 049b17ff96
No known key found for this signature in database
GPG key ID: 80E5375C094198D8
10 changed files with 100 additions and 193 deletions

View file

@ -54,9 +54,7 @@ func assertEngineExecution(t *testing.T, valid bool,
done := false
for !done {
dis, err := vm.DisasmPC()
if err != nil {
t.Fatalf("stepping (%v)\n", err)
}
require.NoError(t, err, "stepping")
debugBuf.WriteString(fmt.Sprintf("stepping %v\n", dis))
done, err = vm.Step()