diff options
| author | Eyal Posener <[email protected]> | 2021-01-30 11:13:29 +0200 |
|---|---|---|
| committer | Eyal Posener <[email protected]> | 2021-01-30 11:13:29 +0200 |
| commit | 5d9f7f10f0af6142dc2f3b8733b807ed207f9ea7 (patch) | |
| tree | 59d85c24066392635c458aff573dfeef53673298 /gocomplete/tests_test.go | |
| parent | 246bd25c47871a148cf3eec2ba4b1ba0ec5809ad (diff) | |
Fix failing go1.16 test
Fixes #132
Diffstat (limited to 'gocomplete/tests_test.go')
| -rw-r--r-- | gocomplete/tests_test.go | 2 |
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() |
