Skip to content

Commit

Permalink
Fix references to s.Gw/gw
Browse files Browse the repository at this point in the history
  • Loading branch information
Tit Petric committed Nov 6, 2023
1 parent 2380434 commit 62e510a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gateway/testutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -1019,7 +1019,7 @@ func (s *Test) BootstrapGw(ctx context.Context, cancelFn context.CancelFunc, gen
}
gwConfig.CoProcessOptions = s.config.CoprocessConfig

s.Gw := NewGateway(gwConfig, ctx, cancelFn)
s.Gw = NewGateway(gwConfig, ctx, cancelFn)
s.Gw.setTestMode(true)
s.Gw.ConnectionWatcher = httputil.NewConnectionWatcher()

Expand Down Expand Up @@ -1067,7 +1067,7 @@ func (s *Test) BootstrapGw(ctx context.Context, cancelFn context.CancelFunc, gen
Handler: s.TestServerRouter,
ReadTimeout: 1 * time.Second,
WriteTimeout: 1 * time.Second,
ConnState: gw.ConnectionWatcher.OnStateChange,
ConnState: s.Gw.ConnectionWatcher.OnStateChange,
MaxHeaderBytes: 1 << 20,
}

Expand Down

0 comments on commit 62e510a

Please sign in to comment.