Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanchriswhite committed Jan 15, 2025
1 parent a1bbe17 commit 2777eaa
Show file tree
Hide file tree
Showing 4 changed files with 230 additions and 561 deletions.
3 changes: 2 additions & 1 deletion testutil/e2e/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ type E2EApp struct {
// NewE2EApp creates a new E2EApp instance with integration.App, gRPC, and WebSocket servers
func NewE2EApp(t *testing.T, opts ...integration.IntegrationAppOptionFn) *E2EApp {
t.Helper()
ctx := context.Background()

// Initialize and start gRPC server
creds := insecure.NewCredentials()
Expand Down Expand Up @@ -88,7 +89,7 @@ func NewE2EApp(t *testing.T, opts ...integration.IntegrationAppOptionFn) *E2EApp
resultEventChan: make(chan *coretypes.ResultEvent),
}

mux.Handle(http.MethodPost, rootPattern, newPostHandler(client, e2eApp))
mux.Handle(http.MethodPost, rootPattern, newPostHandler(ctx, client, e2eApp))

go func() {
if err := e2eApp.grpcServer.Serve(grpcListener); err != nil {
Expand Down
Loading

0 comments on commit 2777eaa

Please sign in to comment.