We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a80a4da commit b175403Copy full SHA for b175403
README.md
@@ -0,0 +1,20 @@
1
+# eventually
2
+
3
+```go
4
+// Must will keep trying until it succeeds or the test times out or reaches
5
+// max attempts. If it fails, it will call t.Fatalf.
6
+eventually.Must(t, func(t testing.TB) {
7
+ t.Fatal("but keep trying")
8
+}, eventually.WithMaxAttempts(10))
9
10
+// Should will keep trying until it succeeds or the test times out or reaches
11
+// max attempts. If it fails, it will call t.Errorf.
12
+eventually.Should(t, func(t testing.TB) {
13
14
+}, eventually.WithTimeout(10*time.Second), eventually.WithInterval(1*time.Second))
15
+```
16
17
+## TODO
18
+- [ ] Support `Cleanup`
19
+- [ ] Support `Skip`?
20
+- [ ] Add documentation
0 commit comments