Skip to content

Commit

Permalink
download playwright dependencies at the start
Browse files Browse the repository at this point in the history
  • Loading branch information
ganeshdipdumbare committed Feb 12, 2023
1 parent 98109c3 commit b83f266
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions internal/speed/fast/fast.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@ func (f *fastSpeed) GetSpeed() (*speed.GetSpeedResp, error) {
downloadSpeedResp := make(chan speed.NetSpeed)
uploadSpeedResp := make(chan speed.NetSpeed)

runOptions := &playwright.RunOptions{
Verbose: false,
}

err := playwright.Install(runOptions)
if err != nil {
log.Fatalf("could not install playwright dependencies: %v", err)
}

pw, err := playwright.Run()
if err != nil {
fmt.Println("Error:", err)
Expand Down

0 comments on commit b83f266

Please sign in to comment.