Skip to content

Commit

Permalink
Refactor to compose RemoteRegistry in moduleVU
Browse files Browse the repository at this point in the history
Resolves: #889 (comment)
  • Loading branch information
ankur22 committed May 22, 2023
1 parent df397e5 commit 6fc9b9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion browser/mapping.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func mapBrowserToGoja(vu moduleVU) *goja.Object {
obj = rt.NewObject()
// TODO: Use k6 LookupEnv instead of OS package methods.
// See https://github.com/grafana/xk6-browser/issues/822.
wsURL, isRemoteBrowser = vu.remoteRegistry.IsRemoteBrowser()
wsURL, isRemoteBrowser = vu.IsRemoteBrowser()
browserType = chromium.NewBrowserType(vu)
)
for k, v := range mapBrowserType(vu, browserType, wsURL, isRemoteBrowser) {
Expand Down
2 changes: 1 addition & 1 deletion browser/modulevu.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type moduleVU struct {
k6modules.VU

*pidRegistry
remoteRegistry *registry.RemoteRegistry
*registry.RemoteRegistry
}

func (vu moduleVU) Context() context.Context {
Expand Down

0 comments on commit 6fc9b9f

Please sign in to comment.