Skip to content

Commit

Permalink
Support standalone mode for all functional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lebauce committed Jul 2, 2020
1 parent 7783272 commit 0256ae3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/tests.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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()
}
}

0 comments on commit 0256ae3

Please sign in to comment.