Skip to content

Commit

Permalink
test(bar): wait for bar to update before testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Bekaboo committed Jan 19, 2025
1 parent 289c4c3 commit 64c4a99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/bar_spec.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
local dropbar = require('dropbar')
local configs = require('dropbar.configs')
local bar = require('dropbar.bar')
local menu = require('dropbar.menu')
local spy = require('luassert.spy')
Expand Down Expand Up @@ -106,7 +107,7 @@ describe('[bar]', function()
before_each(function()
winbar =
_G.dropbar.bars[vim.api.nvim_get_current_buf()][vim.api.nvim_get_current_win()]
vim.wait(10, winbar:update())
vim.wait(configs.opts.bar.update_debounce * 2, winbar:update())
sym1 = winbar.components[1]
sym2 = winbar.components[2]
sym3 = winbar.components[3]
Expand Down

0 comments on commit 64c4a99

Please sign in to comment.