Skip to content

Commit 6b577e5

Browse files
committed
Fix excluding tests for older InfluxDB versions
1 parent b332003 commit 6b577e5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

test/instream/connection_test.exs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ defmodule Instream.ConnectionTest do
7676
DefaultConnection.query(query, params: params)
7777
end
7878

79-
@tag influxdb_version: "1.7"
79+
@tag :"influxdb_exclude_1.6"
80+
@tag :"influxdb_exclude_1.5"
81+
@tag :"influxdb_exclude_1.4"
8082
test "read using flux query" do
8183
:ok =
8284
DefaultConnection.write(%{

test/test_helper.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ config =
5454
if Version.match?(version, "~> #{ver}") do
5555
acc
5656
else
57-
Keyword.put(acc, :exclude, [{:influxdb_version, ver} | acc[:exclude]])
57+
Keyword.put(acc, :exclude, [:"influxdb_exclude_#{ver}" | acc[:exclude]])
5858
end
5959
end)
6060
end

0 commit comments

Comments
 (0)