Skip to content

Commit

Permalink
improve: move comment to msgAndArgs-param in test
Browse files Browse the repository at this point in the history
  • Loading branch information
linusbarth committed Oct 16, 2023
1 parent 5860ab6 commit c46c72b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions suite/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c46c72b

Please sign in to comment.