forked from joejulian/gio
cmd/gogio: remove an unnecessary wait in the js e2e test
We already wait for the app to render itself via the "frame ready" stdout prints. Waiting for the canvas to be ready isn't really necessary anymore. It helped us while we had to rely on sleeps, but that's no longer the case. Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
This commit is contained in:
@@ -128,12 +128,6 @@ func (d *JSTestDriver) Start(t_ *testing.T, path string, width, height int) {
|
||||
d.t.Fatal(err)
|
||||
}
|
||||
|
||||
if err := chromedp.Run(ctx,
|
||||
chromedp.WaitReady("canvas", chromedp.ByQuery),
|
||||
); err != nil {
|
||||
d.t.Fatal(err)
|
||||
}
|
||||
|
||||
// Wait for the gio app to render.
|
||||
<-d.frameNotifs
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user