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:
Daniel Martí
2019-11-25 00:02:33 +00:00
committed by Elias Naur
parent 726270ab2d
commit 99d97d2ef5
-6
View File
@@ -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
}