summaryrefslogtreecommitdiff
path: root/gocomplete/tests_test.go
diff options
context:
space:
mode:
authorEyal Posener <[email protected]>2021-01-30 11:13:29 +0200
committerEyal Posener <[email protected]>2021-01-30 11:13:29 +0200
commit5d9f7f10f0af6142dc2f3b8733b807ed207f9ea7 (patch)
tree59d85c24066392635c458aff573dfeef53673298 /gocomplete/tests_test.go
parent246bd25c47871a148cf3eec2ba4b1ba0ec5809ad (diff)
Fix failing go1.16 test
Fixes #132
Diffstat (limited to 'gocomplete/tests_test.go')
-rw-r--r--gocomplete/tests_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/gocomplete/tests_test.go b/gocomplete/tests_test.go
index b5f96dc..750147a 100644
--- a/gocomplete/tests_test.go
+++ b/gocomplete/tests_test.go
@@ -5,6 +5,7 @@ import (
"sort"
"testing"
+ "bou.ke/monkey"
"github.com/posener/complete/v2"
)
@@ -42,6 +43,7 @@ func TestPredictions(t *testing.T) {
func BenchmarkFake(b *testing.B) {}
func Example() {
+ monkey.Patch(os.Exit, func(int) {})
os.Setenv("COMP_LINE", "go ru")
os.Setenv("COMP_POINT", "5")
main()