mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-03 23:06:36 +08:00
88360350a0
Delete the old monolithic openflare-server implementation and rename Wavelet/ to openflare-server/ to complete the migration consolidation. Update CI workflows, agent Dockerfiles, and deployment docs for the new layout (frontend/, docker/Dockerfile).
18 lines
355 B
Go
18 lines
355 B
Go
// Copyright 2026 Arctel.net
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package testhelper
|
|
|
|
// RegisterCleanup registers an extra cleanup hook invoked by SetupTestEnvironment.
|
|
func RegisterCleanup(fn func()) {
|
|
extraCleanups = append(extraCleanups, fn)
|
|
}
|
|
|
|
var extraCleanups []func()
|
|
|
|
func runExtraCleanups() {
|
|
for _, fn := range extraCleanups {
|
|
fn()
|
|
}
|
|
}
|