@@ -131,23 +131,23 @@ type MultiStartNewRunnerDutySpecTest struct {
131131 PrivateKeys * testingutils.PrivateKeyInfo `json:"PrivateKeys,omitempty"`
132132}
133133
134- func (test * MultiStartNewRunnerDutySpecTest ) TestName () string {
135- return test .Name
134+ func (mTest * MultiStartNewRunnerDutySpecTest ) TestName () string {
135+ return mTest .Name
136136}
137137
138- func (test * MultiStartNewRunnerDutySpecTest ) Run (t * testing.T ) {
139- test .overrideStateComparison (t )
138+ func (mTest * MultiStartNewRunnerDutySpecTest ) Run (t * testing.T ) {
139+ mTest .overrideStateComparison (t )
140140
141- for _ , test := range test .Tests {
141+ for _ , test := range mTest .Tests {
142142 t .Run (test .TestName (), func (t * testing.T ) {
143143 test .RunAsPartOfMultiTest (t )
144144 })
145145 }
146146}
147147
148- func (test * MultiStartNewRunnerDutySpecTest ) GetPostState () (interface {}, error ) {
149- ret := make (map [string ]types.Root , len (test .Tests ))
150- for _ , test := range test .Tests {
148+ func (mTest * MultiStartNewRunnerDutySpecTest ) GetPostState () (interface {}, error ) {
149+ ret := make (map [string ]types.Root , len (mTest .Tests ))
150+ for _ , test := range mTest .Tests {
151151 err := test .runPreTesting ()
152152 if err != nil && ! tests .MatchesErrorCode (test .ExpectedErrorCode , err ) {
153153 return nil , fmt .Errorf (
@@ -163,11 +163,11 @@ func (test *MultiStartNewRunnerDutySpecTest) GetPostState() (interface{}, error)
163163}
164164
165165// overrideStateComparison overrides the post state comparison for all tests in the multi test
166- func (test * MultiStartNewRunnerDutySpecTest ) overrideStateComparison (t * testing.T ) {
167- testsName := strings .ReplaceAll (test .TestName (), " " , "_" )
168- for _ , test := range test .Tests {
166+ func (mTest * MultiStartNewRunnerDutySpecTest ) overrideStateComparison (t * testing.T ) {
167+ testsName := strings .ReplaceAll (mTest .TestName (), " " , "_" )
168+ for _ , test := range mTest .Tests {
169169 path := filepath .Join (testsName , test .TestName ())
170- overrideStateComparison (t , test , path , reflect .TypeOf (test ).String ())
170+ overrideStateComparison (t , test , path , reflect .TypeOf (mTest ).String ())
171171 }
172172}
173173
0 commit comments