Skip to content

Commit

Permalink
ensure master window for window tests is completely created to avoid …
Browse files Browse the repository at this point in the history
…unexpected call to os.Exit(0) during tests
  • Loading branch information
fpabl0 committed Feb 28, 2021
1 parent de8fa60 commit 2d95c4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/driver/glfw/window_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func TestMain(m *testing.M) {
os.Exit(m.Run())
}()

master := d.CreateWindow("Master")
master := createWindow("Master")
master.SetOnClosed(func() {
// we do not close, keeping the driver running
})
Expand Down

0 comments on commit 2d95c4e

Please sign in to comment.