From 130d34026214558b81491eeb1780b04c370111d7 Mon Sep 17 00:00:00 2001 From: Linus Barth Date: Mon, 16 Oct 2023 02:59:16 +0200 Subject: [PATCH] improve: move comment to msgAndArgs-param in test --- suite/suite_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/suite/suite_test.go b/suite/suite_test.go index fce7202..bc32b23 100644 --- a/suite/suite_test.go +++ b/suite/suite_test.go @@ -259,14 +259,12 @@ func (suite *SuiteTester) TestSubtest() { func (suite *SuiteTester) TearDownSubTest() { suite.TearDownSubTestRunCount++ - // We should get the *testing.T for the test that is to be torn down - suite.Contains(suite.T().Name(), "subtest") + suite.Contains(suite.T().Name(), "subtest", "We should get the *testing.T for the test that is to be torn down") } func (suite *SuiteTester) SetupSubTest() { suite.SetupSubTestRunCount++ - // We should get the *testing.T for the test that is to be set up - suite.Contains(suite.T().Name(), "subtest") + suite.Contains(suite.T().Name(), "subtest", "We should get the *testing.T for the test that is to be set up") } type SuiteSkipTester struct {