Skip to content

test(extra): fix test failing conditionally on mini's local path#2364

Merged
echasnovski merged 1 commit intonvim-mini:mainfrom
abeldekat:test_fix_extra_in_worktree
Apr 12, 2026
Merged

test(extra): fix test failing conditionally on mini's local path#2364
echasnovski merged 1 commit intonvim-mini:mainfrom
abeldekat:test_fix_extra_in_worktree

Conversation

@abeldekat
Copy link
Copy Markdown
Member

@abeldekat abeldekat commented Apr 11, 2026

Details:

  • When mini.nvim is checked out locally to for example '~/projects/fix_mini', test 'oldfiles-respect local_opts.preserve_order' fails because search key 'x' is now present in all items

  • Function validate_spawn_log is unused and has been removed


This PR adds the full test path to the test buffers, in order to display only the relative part in the oldfiles picker.

For example, the display of the first item changes from ~/projects/plugins/mini_test_fix_extra/a... into tests/dir-extra/auav.

The search keys have been changed from 'xy' into 'uv'(letters not in tests/dir-extra)

I tested a checkout of mini to directory abcdefghijklmnopqrstuvwxyz0123456789 to make sure that there are no other similar failing tests....

@abeldekat abeldekat requested a review from echasnovski April 11, 2026 18:30
@abeldekat abeldekat force-pushed the test_fix_extra_in_worktree branch from e445cdf to d56d487 Compare April 11, 2026 18:32
Details:
- When mini.nvim is checked out locally to for example
  '~/projects/fix_mini',
  test 'oldfiles-respect local_opts.preserve_order' fails because
  search key 'x' is now present in all items

- Function `validate_spawn_log` is unused and has been removed
@abeldekat abeldekat force-pushed the test_fix_extra_in_worktree branch from d56d487 to 52d77c2 Compare April 12, 2026 08:28
Copy link
Copy Markdown
Member

@echasnovski echasnovski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Looks good.

@echasnovski echasnovski merged commit c67822c into nvim-mini:main Apr 12, 2026
12 checks passed
@abeldekat abeldekat deleted the test_fix_extra_in_worktree branch April 12, 2026 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants