Skip to content

Commit

Permalink
Register http and https in test driver like the main app
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed May 22, 2024
1 parent 0540451 commit 14fa8f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/testdriver.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ func NewDriver() fyne.Driver {
drv := &testDriver{windowsMutex: sync.RWMutex{}}
repository.Register("file", intRepo.NewFileRepository())

httpHandler := intRepo.NewHTTPRepository()
repository.Register("http", httpHandler)
repository.Register("https", httpHandler)

// make a single dummy window for rendering tests
drv.CreateWindow("")

Expand Down

0 comments on commit 14fa8f7

Please sign in to comment.