diff options
| -rw-r--r-- | gocomplete/tests_test.go | 3 |
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() |
