fix: unittest

This commit is contained in:
lilong.129
2023-08-25 18:05:57 +08:00
parent 8f7da0f2ac
commit 6e1fa9f70d
2 changed files with 3 additions and 2 deletions

View File

@@ -452,6 +452,6 @@ func GenNameWithTimestamp(tmpl string) string {
}
func IsZeroFloat64(f float64) bool {
threshold := 1e-3
threshold := 1e-9
return math.Abs(f) < threshold
}

View File

@@ -81,7 +81,8 @@ func TestTapUIWithScreenshot(t *testing.T) {
t.Fatal(err)
}
err = driver.TapByUIDetection([]string{"dyhouse", "shoppingbag"})
err = driver.TapByUIDetection(
WithScreenShotUITypes("dyhouse", "shoppingbag"))
if err != nil {
t.Fatal(err)
}