Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Satbek committed Oct 24, 2024
1 parent 5e9699b commit d431825
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions test/opentracing/injector/http_test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,27 @@ g.test_injector = function()
local empty_context = {
each_baggage_item = function() return function() end end
}

local http_headers = {
['content-type'] = 'application/json',
}
http_injector(empty_context, http_headers)

t.assert_equals('application/json', http_headers['content-type'], 'Old headers are saved')

local trace_id = digest.urandom(16)
local span_id = digest.urandom(8)

local context = {
each_baggage_item = function() return function() end end,
trace_id = trace_id,
span_id = span_id,
}

local http_headers = {
['content-type'] = 'application/json',
}

http_injector(context, http_headers)
t.assert_equals({
['x-b3-traceid'] = trace_id,
Expand Down
6 changes: 3 additions & 3 deletions test/zipkin/bounded_queue_test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ local queue = require('tracing.zipkin.bounded_queue')

g.test_size_1 = function()
local q = queue.new(1)

t.assert_equals(#q.buffer, 0, "Initial queue size should be 0")

q:push(1)
Expand All @@ -24,7 +24,7 @@ end

g.test_size_3 = function()
local q = queue.new(3)

t.assert_equals(#q.buffer, 0, "Initial queue size should be 0")

q:push(1)
Expand All @@ -42,7 +42,7 @@ end

g.test_clear = function()
local q = queue.new(3)

t.assert_equals(#q.buffer, 0, "Initial queue size should be 0")

q:push(1)
Expand Down

0 comments on commit d431825

Please sign in to comment.