Skip to content

Commit 5f63af8

Browse files
committed
Fix excluding tests for older InfluxDB versions
1 parent b332003 commit 5f63af8

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

test/instream/connection_test.exs

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

79-
@tag influxdb_version: "1.7"
79+
@tag :"influxdb_exclude_1.7"
80+
@tag :"influxdb_exclude_1.6"
81+
@tag :"influxdb_exclude_1.5"
82+
@tag :"influxdb_exclude_1.4"
8083
test "read using flux query" do
8184
:ok =
8285
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)