Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion lua/diffview/tests/functional/jj_adapter_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ describe("diffview.vcs.adapters.jj", function()
-- has a real name and checktime doesn't error.
local tmpfile = vim.fn.tempname()
vim.fn.writefile({ "hello" }, tmpfile)
vim.bo[bufnr].swapfile = false
vim.api.nvim_buf_set_name(bufnr, tmpfile)
vim.fn.bufload(bufnr)

Expand Down
5 changes: 5 additions & 0 deletions scripts/test_init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ function M.setup()
vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1
vim.cmd([[set runtimepath=$VIMRUNTIME]])
-- Swap files serve no purpose in the headless test runner and force
-- Neovim to lazily create the swap directory under `XDG_STATE_HOME`,
-- which can intermittently fail with E303 when that mkdir races other
-- state writes. Disable them so tests can create named buffers freely.
vim.opt.swapfile = false
vim.opt.runtimepath:append(M.root())
vim.opt.packpath = { M.root(".tests/site") }
M.load("nvim-lua/plenary.nvim")
Expand Down
Loading