Skip to content

Commit

Permalink
fix(plugin): fix test style
Browse files Browse the repository at this point in the history
  • Loading branch information
oowl committed Jan 11, 2023
1 parent 86f5036 commit 6009e7e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions spec/03-plugins/37-opentelemetry/05-otelcol_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ local OTELCOL_FILE_EXPORTER_PATH = helpers.otelcol_file_exporter_path

for _, strategy in helpers.each_strategy() do
local proxy_url
local admin_client
local plugin

describe("otelcol #" .. strategy, function()
-- helpers
Expand All @@ -37,7 +35,7 @@ for _, strategy in helpers.each_strategy() do
protocols = { "http" },
paths = { "/" }})

plugin = bp.plugins:insert({
bp.plugins:insert({
name = "opentelemetry",
config = table_merge({
endpoint = fmt("http://%s:%s/v1/traces", OTELCOL_HOST, OTELCOL_HTTP_PORT),
Expand All @@ -53,7 +51,6 @@ for _, strategy in helpers.each_strategy() do
})

proxy_url = fmt("http://%s:%s", helpers.get_proxy_ip(), helpers.get_proxy_port())
admin_client = helpers.admin_client()
end

describe("otelcol receives traces #http", function()
Expand Down

0 comments on commit 6009e7e

Please sign in to comment.