aboutsummaryrefslogtreecommitdiff
path: root/test/benchmark/bench_regexp_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/benchmark/bench_regexp_spec.lua')
-rw-r--r--test/benchmark/bench_regexp_spec.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/benchmark/bench_regexp_spec.lua b/test/benchmark/bench_regexp_spec.lua
index 4a7c50557b..2c2b8dc359 100644
--- a/test/benchmark/bench_regexp_spec.lua
+++ b/test/benchmark/bench_regexp_spec.lua
@@ -1,8 +1,9 @@
-- Test for benchmarking the RE engine.
-local helpers = require('test.functional.helpers')(after_each)
-local insert, source = helpers.insert, helpers.source
-local clear, command = helpers.clear, helpers.command
+local n = require('test.functional.testnvim')()
+
+local insert, source = n.insert, n.source
+local clear, command = n.clear, n.command
-- Temporary file for gathering benchmarking results for each regexp engine.
local result_file = 'benchmark.out'