ref: 6f72ddfb9a89d2d264fb8b4d59431dbe0342d4f6
parent: 11f03608f13d41ab976282e81f56b65b783d856f
author: Philip Silva <philip.silva@protonmail.com>
date: Sat Jan 23 11:31:51 EST 2021
rm pauses
--- a/browser/experimental.go
+++ b/browser/experimental.go
@@ -5,7 +5,6 @@
"image"
"github.com/psilva261/opossum/domino"
"github.com/psilva261/opossum/nodes"
- "time"
"9fans.net/go/draw"
"github.com/mjl-/duit"
@@ -132,7 +131,6 @@
}
}
- time.Sleep(time.Second)
resHtm, changed, err := d.TrackChanges()
if err != nil {
return "", fmt.Errorf("track changes: %w", err)
--- a/domino/domino_test.go
+++ b/domino/domino_test.go
@@ -5,7 +5,6 @@
"github.com/psilva261/opossum/logger"
"strings"
"testing"
- "time"
)
const simpleHTML = `
@@ -93,7 +92,6 @@
if res != "2" {
t.Fatal()
}
- time.Sleep(2 * time.Second)
d.Stop()
}
@@ -118,7 +116,6 @@
t.Fatalf("%v", err)
}
}
- time.Sleep(2 * time.Second)
d.Stop()
}
@@ -143,7 +140,6 @@
t.Fatalf("%v", err)
}
}
- time.Sleep(2 * time.Second)
d.Stop()
}
@@ -181,7 +177,6 @@
t.Fatalf(err.Error())
}
- time.Sleep(2 * time.Second)
res, err := d.Exec("$('h1').html()", false)
if err != nil {
t.Fatalf(err.Error())
@@ -218,7 +213,6 @@
t.Fatalf(err.Error())
}
- //time.Sleep(2 * time.Second)
res, err := d.Exec("$('h1').html()", false)
if err != nil {
t.Fatalf(err.Error())
@@ -281,7 +275,6 @@
t.Fatalf(err.Error())
}
- time.Sleep(2 * time.Second)
res, err := d.Exec("$('h1').html()", false)
if err != nil {
t.Fatalf(err.Error())
@@ -295,7 +288,6 @@
t.Fatalf(err.Error())
}
t.Logf("new res=%v", res)
- <-time.After(2*time.Second)
d.Stop()
}