From 0256ae39f1dedf862cb6cdeba1446d4f1f33ed32 Mon Sep 17 00:00:00 2001 From: Sylvain Baubeau Date: Thu, 2 Jul 2020 22:15:31 +0200 Subject: [PATCH] Support standalone mode for all functional tests --- tests/tests.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/tests.go b/tests/tests.go index 3d762ad774..e3d49f9b8d 100644 --- a/tests/tests.go +++ b/tests/tests.go @@ -457,10 +457,6 @@ func (c *TestContext) postmortem(t *testing.T, test *Test, timestamp time.Time) // - execute the cleanup functions and commands // - replay the tests against the history with the recorded timestamps func RunTest(t *testing.T, test *Test) { - if standalone && !initStandalone { - runStandalone() - } - client, err := client.NewCrudClientFromConfig(&shttp.AuthenticationOpts{}) if err != nil { t.Fatalf("Failed to create client: %s", err) @@ -939,4 +935,8 @@ func init() { if err := config.InitLogging(); err != nil { panic(fmt.Sprintf("Failed to initialize logging system: %s", err)) } + + if standalone && !initStandalone { + runStandalone() + } }