Skip to content

Commit c46c72b

Browse files
committed
improve: move comment to msgAndArgs-param in test
1 parent 5860ab6 commit c46c72b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

suite/suite_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,14 +259,12 @@ func (suite *SuiteTester) TestSubtest() {
259259

260260
func (suite *SuiteTester) TearDownSubTest() {
261261
suite.TearDownSubTestRunCount++
262-
// We should get the *testing.T for the test that is to be torn down
263-
suite.Contains(suite.T().Name(), "subtest")
262+
suite.Contains(suite.T().Name(), "subtest", "We should get the *testing.T for the test that is to be torn down")
264263
}
265264

266265
func (suite *SuiteTester) SetupSubTest() {
267266
suite.SetupSubTestRunCount++
268-
// We should get the *testing.T for the test that is to be set up
269-
suite.Contains(suite.T().Name(), "subtest")
267+
suite.Contains(suite.T().Name(), "subtest", "We should get the *testing.T for the test that is to be set up")
270268
}
271269

272270
type SuiteSkipTester struct {

0 commit comments

Comments
 (0)