mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
Make sure that HugoSites is always closed when done
Including all the integration tests.
This commit is contained in:
@@ -421,6 +421,12 @@ func (s *IntegrationTestBuilder) Build() *IntegrationTestBuilder {
|
||||
s.Assert(err, qt.IsNil)
|
||||
}
|
||||
|
||||
s.Cleanup(func() {
|
||||
if h := s.H; h != nil {
|
||||
s.Assert(h.Close(), qt.IsNil)
|
||||
}
|
||||
})
|
||||
|
||||
return s
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user