17 lines
524 B
Go
17 lines
524 B
Go
package web
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
|
|
"gitea.dooplex.hu/admin/felhom-controller/internal/backup"
|
|
"gitea.dooplex.hu/admin/felhom-controller/internal/dockerexec"
|
|
)
|
|
|
|
// TestMain puts a silent docker stub on PATH for every test in this package: R-650, the fixtures
|
|
// here build a real stacks.Manager, and on the build host (DooPlex) that reached production Docker.
|
|
func TestMain(m *testing.M) {
|
|
backup.ShortenRestoreTimingForTests() // fix A's stable windows in milliseconds here too
|
|
os.Exit(dockerexec.RunWithStub(m))
|
|
}
|