From d4318256774af5cb1adfa24e9b366666a9af5dae Mon Sep 17 00:00:00 2001 From: Satbek Turganbayev Date: Thu, 24 Oct 2024 20:30:13 +0500 Subject: [PATCH] fix lint --- test/opentracing/injector/http_test.lua | 12 ++++++------ test/zipkin/bounded_queue_test.lua | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/test/opentracing/injector/http_test.lua b/test/opentracing/injector/http_test.lua index a44367e..7633204 100644 --- a/test/opentracing/injector/http_test.lua +++ b/test/opentracing/injector/http_test.lua @@ -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, diff --git a/test/zipkin/bounded_queue_test.lua b/test/zipkin/bounded_queue_test.lua index 0249df1..e5edc5d 100755 --- a/test/zipkin/bounded_queue_test.lua +++ b/test/zipkin/bounded_queue_test.lua @@ -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) @@ -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) @@ -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)