Skip to content

Commit

Permalink
theory: try init instead
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed Feb 29, 2024
1 parent 7ed994d commit 8acedb3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions flow/e2e/main_test.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
package e2e

import (
"os"
"testing"

"github.com/PeerDB-io/peer-flow/cmd"
)

func TestMain(m *testing.M) {
func init() {
peerWorker, peerErr := cmd.WorkerMain(&cmd.WorkerOptions{
TemporalHostPort: "localhost:7233",
EnableProfiling: false,
Expand All @@ -33,6 +30,4 @@ func TestMain(m *testing.M) {
} else if err := snapWorker.Start(); err != nil {
panic(err)
}

os.Exit(m.Run())
}

0 comments on commit 8acedb3

Please sign in to comment.