From 18df9d02c8270b79737cf3ee261628ec5651b89d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20de=20la=20Pe=C3=B1a?= Date: Thu, 25 Apr 2024 18:03:20 +0200 Subject: [PATCH] chore: require no error in test --- options_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/options_test.go b/options_test.go index 7674822128..94d01adc59 100644 --- a/options_test.go +++ b/options_test.go @@ -242,7 +242,7 @@ func TestWithHostPortAccess(t *testing.T) { for _, tc := range tests { t.Run(tc.name, func(t *testing.T) { opt := testcontainers.WithHostPortAccess(tc.hostPorts...) - opt.Customize(tc.req) + require.NoError(t, opt.Customize(tc.req)) require.Equal(t, tc.expect, tc.req.HostAccessPorts) }) }