cmd/gogio: fix test work group handling

Signed-off-by: Egon Elbre <egonelbre@gmail.com>
This commit is contained in:
Egon Elbre
2021-02-27 23:23:03 +02:00
committed by Elias Naur
parent 2e15c3d5b9
commit 60db802951
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ func (d *WineTestDriver) Start(path string) {
d.Cleanup(wg.Wait)
// Add 50x50px to the display dimensions, as discussed earlier.
d.startServer(wg, d.width+50, d.height+50)
d.startServer(&wg, d.width+50, d.height+50)
// Then, start our program via Wine on the X server above.
{
+2 -2
View File
@@ -39,7 +39,7 @@ func (d *X11TestDriver) Start(path string) {
var wg sync.WaitGroup
d.Cleanup(wg.Wait)
d.startServer(wg, d.width, d.height)
d.startServer(&wg, d.width, d.height)
// Then, start our program on the X server above.
{
@@ -69,7 +69,7 @@ func (d *X11TestDriver) Start(path string) {
d.waitForFrame()
}
func (d *X11TestDriver) startServer(wg sync.WaitGroup, width, height int) {
func (d *X11TestDriver) startServer(wg *sync.WaitGroup, width, height int) {
// Pick a random display number between 1 and 100,000. Most machines
// will only be using :0, so there's only a 0.001% chance of two
// concurrent test runs to run into a conflict.