From 1bceabc13d18f84428afe3afe8c1c5713246eaf0 Mon Sep 17 00:00:00 2001 From: Aman Sanghi Date: Thu, 18 Jul 2024 22:39:11 +0530 Subject: [PATCH] test failure with fail --- system_tests/fa/fa_test.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/system_tests/fa/fa_test.go b/system_tests/fa/fa_test.go index d78503f43b..f424c0e19e 100644 --- a/system_tests/fa/fa_test.go +++ b/system_tests/fa/fa_test.go @@ -1,17 +1,15 @@ package fa_test import ( - "errors" "github.com/offchainlabs/nitro/util/testhelpers" "testing" ) func TestAliasing(t *testing.T) { - err := errors.New("test") - Require(t, err) + Fail(t, "fail") } -func Require(t *testing.T, err error, text ...interface{}) { +func Fail(t *testing.T, printables ...interface{}) { t.Helper() - testhelpers.RequireImpl(t, err, text...) + testhelpers.FailImpl(t, printables...) }