Skip to content

Commit

Permalink
Fix excluding tests for older InfluxDB versions
Browse files Browse the repository at this point in the history
  • Loading branch information
mneudert committed Nov 30, 2019
1 parent b332003 commit 6b577e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion test/instream/connection_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ defmodule Instream.ConnectionTest do
DefaultConnection.query(query, params: params)
end

@tag influxdb_version: "1.7"
@tag :"influxdb_exclude_1.6"
@tag :"influxdb_exclude_1.5"
@tag :"influxdb_exclude_1.4"
test "read using flux query" do
:ok =
DefaultConnection.write(%{
Expand Down
2 changes: 1 addition & 1 deletion test/test_helper.exs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ config =
if Version.match?(version, "~> #{ver}") do
acc
else
Keyword.put(acc, :exclude, [{:influxdb_version, ver} | acc[:exclude]])
Keyword.put(acc, :exclude, [:"influxdb_exclude_#{ver}" | acc[:exclude]])
end
end)
end
Expand Down

0 comments on commit 6b577e5

Please sign in to comment.