Skip to content

Commit

Permalink
test: simple skip for flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
DifferentialOrange committed Jul 4, 2024
1 parent 74cfab8 commit 9d5b5d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/tarantool/cpu_metrics_test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ end)

g.test_cpu = function(cg)
cg.server:exec(function()
t.skip('Flaky test')

local metrics = require('metrics')
local cpu = require('metrics.tarantool.cpu')
local utils = require('test.utils') -- luacheck: ignore 431
Expand All @@ -26,7 +28,6 @@ g.test_cpu = function(cg)
t.assert(user_time_metric)
t.assert(system_time_metric)
t.assert(user_time_metric[1].value > 0)
t.xfail_if(not (system_time_metric[1].value > 0), 'Flaky test')
t.assert(system_time_metric[1].value > 0)
end)
end

0 comments on commit 9d5b5d8

Please sign in to comment.