Skip to content

Commit

Permalink
Add a reference to the FilePersister to moduleVU
Browse files Browse the repository at this point in the history
The file persister will either be a local one or a remote one. The
decision will be made when the moduleVU is created, and one will be
initialised and set in the moduleVU instance.
  • Loading branch information
ankur22 committed Jan 30, 2024
1 parent 956bc22 commit f35a27a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions browser/modulevu.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (

"github.com/grafana/xk6-browser/common"
"github.com/grafana/xk6-browser/k6ext"
"github.com/grafana/xk6-browser/storage"

k6modules "go.k6.io/k6/js/modules"
)
Expand All @@ -20,6 +21,8 @@ type moduleVU struct {
*browserRegistry

*taskQueueRegistry

FilePersister storage.FilePersister
}

// browser returns the VU browser instance for the current iteration.
Expand Down

0 comments on commit f35a27a

Please sign in to comment.