File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class InfluxdbCli < Formula
24
24
end
25
25
26
26
depends_on "go" => :build
27
- depends_on "influxdb" => :test
27
+ depends_on "influxdb@2 " => :test
28
28
29
29
def install
30
30
ldflags = %W[
@@ -43,12 +43,13 @@ def install
43
43
test do
44
44
# Boot a test server.
45
45
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
52
53
sleep 30
53
54
54
55
# Configure the CLI for the test env.
You can’t perform that action at this time.
0 commit comments