File tree 1 file changed +0
-3
lines changed 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -50,9 +50,6 @@ not grep 'func Test[^(]' -- test/*.go
50
50
git grep ' func (s) ' -- " *_test.go" | not grep -v ' func (s) Test'
51
51
git grep ' func [A-Z]' -- " *_test.go" | not grep -v ' func Test\|Benchmark\|Example'
52
52
53
- # - Make sure all context usages are done timeout.
54
- git grep -e ' context.Background()' --or -e ' context.TODO()' -- " *_test.go" | grep -v " benchmark/primitives/context_test.go" | grep -v " credentials/google" | grep -v " internal/transport/" | grep -v " xds/internal/" | grep -v " security/advancedtls" | not grep -v ' context.WithTimeout(' | not grep -v ' context.WithCancel('
55
-
56
53
# - Do not use time.After except in tests. It has the potential to leak the
57
54
# timer since there is no way to stop it early.
58
55
git grep -l ' time.After(' -- " *.go" | not grep -v ' _test.go\|test_utils\|testutils'
You can’t perform that action at this time.
0 commit comments