summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEyal Posener <[email protected]>2021-04-01 10:52:49 +0300
committerGitHub <[email protected]>2021-04-01 10:52:49 +0300
commit002575c9d5d6c6e162302512c5b899920e839e56 (patch)
treef96859618e0a8803d4b0d0e8186926e66a3fa7d8
parent5d9f7f10f0af6142dc2f3b8733b807ed207f9ea7 (diff)
parentbf9b51caf44ac2e75f44ab6e67684a30d7074001 (diff)
Merge pull request #136 from antichris/gocomplete-let-tests-fail
gocomplete: do not suppress test failures
-rw-r--r--gocomplete/tests_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/gocomplete/tests_test.go b/gocomplete/tests_test.go
index 750147a..a1238a4 100644
--- a/gocomplete/tests_test.go
+++ b/gocomplete/tests_test.go
@@ -43,7 +43,8 @@ func TestPredictions(t *testing.T) {
func BenchmarkFake(b *testing.B) {}
func Example() {
- monkey.Patch(os.Exit, func(int) {})
+ p := monkey.Patch(os.Exit, func(int) {})
+ defer p.Unpatch()
os.Setenv("COMP_LINE", "go ru")
os.Setenv("COMP_POINT", "5")
main()