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 c04b085 commit 58ff83fCopy full SHA for 58ff83f
scripts/vet.sh
@@ -50,6 +50,9 @@ not grep 'func Test[^(]' -- test/*.go
50
git grep 'func (s) ' -- "*_test.go" | not grep -v 'func (s) Test'
51
git grep 'func [A-Z]' -- "*_test.go" | not grep -v 'func Test\|Benchmark\|Example'
52
53
+# - Make sure not context usage are done without timeout.
54
+git grep 'context.Background()' -- "*_test.go" | not grep -v 'context.WithTimeout(context.Background()'
55
+
56
# - Do not use time.After except in tests. It has the potential to leak the
57
# timer since there is no way to stop it early.
58
git grep -l 'time.After(' -- "*.go" | not grep -v '_test.go\|test_utils\|testutils'
0 commit comments