diff --git a/tests/specs/neogit/lib/git/branch_spec.lua b/tests/specs/neogit/lib/git/branch_spec.lua index a1cc64c54..5a58a3660 100644 --- a/tests/specs/neogit/lib/git/branch_spec.lua +++ b/tests/specs/neogit/lib/git/branch_spec.lua @@ -6,7 +6,7 @@ local neogit_util = require("neogit.lib.util") local util = require("tests.util.util") local input = require("tests.mocks.input") -describe("git branch lib", function() +describe("lib.git.branch", function() describe("#exists", function() before_each(function() git_harness.prepare_repository() @@ -88,14 +88,15 @@ describe("git branch lib", function() ]]) end) - it("prompts user for confirmation (yes) and deletes branch", function() + -- These two tests seem to have a race condition where `input.confirmed` isn't set properly + pending("prompts user for confirmation (yes) and deletes branch", function() input.confirmed = true assert.True(gb.delete("a-new-branch")) assert.False(vim.tbl_contains(gb.get_local_branches(true), "a-new-branch")) end) - it("prompts user for confirmation (no) and doesn't delete branch", function() + pending("prompts user for confirmation (no) and doesn't delete branch", function() input.confirmed = false assert.False(gb.delete("a-new-branch"))