Skip to content

Commit

Permalink
init GLFW before anything else in GLFW tests
Browse files Browse the repository at this point in the history
This seems to fix fyne-io#782.
  • Loading branch information
toaster committed Apr 5, 2020
1 parent 371e12d commit 418a6dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/driver/glfw/window_test.go
Expand Up @@ -32,6 +32,7 @@ func init() {
// TestMain makes sure that our driver is running on the main thread.
// This must be done for some of our tests to function correctly.
func TestMain(m *testing.M) {
d.(*gLDriver).initGLFW()
go func() {
os.Exit(m.Run())
}()
Expand Down

0 comments on commit 418a6dc

Please sign in to comment.