File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -178,7 +178,8 @@ func TestRun(t *testing.T) {
178
178
t .Run ("Without ptr: only non-ptr methods" , func (t * testing.T ) {
179
179
defer traceFullNoPtr .clean ()
180
180
suite := FullNoPtr {}
181
- td .CmpTrue (t , tdsuite .Run (t , suite )) // non-ptr
181
+ tb := test .NewTestingTB ("TestWithoutPtr" )
182
+ td .CmpTrue (t , tdsuite .Run (tb , suite )) // non-ptr
182
183
ok := td .Cmp (t , traceFullNoPtr .calls , []string {
183
184
"Setup" ,
184
185
/**/ "PreTest+Test1" ,
@@ -207,8 +208,7 @@ func TestRun(t *testing.T) {
207
208
}
208
209
}
209
210
// Yes it is a bit ugly
210
- td .Cmp (t , t , td .Smuggle ("output" ,
211
- td .Contains ("Run(): several methods are not accessible as suite is not a pointer but tdsuite_test.FullNoPtr: PostTest, Test2" )))
211
+ td .CmpEmpty (t , tb .ContainsMessages ("Run(): several methods are not accessible as suite is not a pointer but tdsuite_test.FullNoPtr: PostTest, Test2" ))
212
212
})
213
213
214
214
t .Run ("With ptr: all ptr & non-ptr methods" , func (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments