Change how tearDownAllSuite is run to aviod deadlock when running with failfast

This commit is contained in:
ariley 2020-04-20 20:16:18 +01:00 committed by Boyan Soubachov
parent 097ec799df
commit cd58006fe6

View File

@ -160,7 +160,6 @@ func Run(t *testing.T, suite TestingSuite) {
} }
tests = append(tests, test) tests = append(tests, test)
} }
if suiteSetupDone { if suiteSetupDone {
defer func() { defer func() {
if tearDownAllSuite, ok := suite.(TearDownAllSuite); ok { if tearDownAllSuite, ok := suite.(TearDownAllSuite); ok {