Skip to content

Commit 93c0241

Browse files
chenrui333daeho-ro
authored andcommitted
influxdb-cli: use influxdb@2 for test
Signed-off-by: Rui Chen <[email protected]>
1 parent ed7fe31 commit 93c0241

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

Formula/i/influxdb-cli.rb

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class InfluxdbCli < Formula
2424
end
2525

2626
depends_on "go" => :build
27-
depends_on "influxdb" => :test
27+
depends_on "influxdb@2" => :test
2828

2929
def install
3030
ldflags = %W[
@@ -43,12 +43,13 @@ def install
4343
test do
4444
# Boot a test server.
4545
influxd_port = free_port
46-
influxd = fork do
47-
exec "influxd", "--bolt-path=#{testpath}/influxd.bolt",
48-
"--engine-path=#{testpath}/engine",
49-
"--http-bind-address=:#{influxd_port}",
50-
"--log-level=error"
51-
end
46+
influxd_args = %W[
47+
--bolt-path=#{testpath}/influxd.bolt
48+
--engine-path=#{testpath}/engine
49+
--http-bind-address=:#{influxd_port}
50+
--log-level=error
51+
]
52+
influxd = spawn Formula["influxdb@2"].opt_bin/"influxd", *influxd_args
5253
sleep 30
5354

5455
# Configure the CLI for the test env.

0 commit comments

Comments
 (0)