diff --git a/internal/testing/testing.go b/internal/testing/testing.go index 914c93ad1..cea545eb0 100644 --- a/internal/testing/testing.go +++ b/internal/testing/testing.go @@ -41,7 +41,8 @@ func (*game) Layout(int, int) (int, int) { func MainWithRunLoop(m *testing.M) { // Run an Ebiten process so that (*Image).At is available. g := &game{ - m: m, + m: m, + code: 1, } if err := ebiten.RunGame(g); err != nil { panic(err)