Skip to content

[BUG] Tests fail on MacOS #61

@FliegendeWurst

Description

@FliegendeWurst

Describe the bug
Test suite fails due to different key names on MacOS.

To Reproduce
Steps to reproduce the behavior:

  1. Run cargo test on MacOS

Expected behavior
Test suite passes

Screenshots

---- ui::draw_blocks::help::tests::test_draw_blocks_help_one_and_two_definitions stdout ----
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot file: src/ui/draw_blocks/snapshots/oxker__ui__draw_blocks__help__tests__draw_blocks_help_one_and_two_definitions.snap
Snapshot: draw_blocks_help_one_and_two_definitions
Source: src/ui/draw_blocks/help.rs:689
────────────────────────────────────────────────────────────────────────────────
Expression: setup.terminal.backend()
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
   33    33 │ " │ ( # ) sort containers by memory                                                                          │ "
   34    34 │ " │ ( / ) or ( = ) sort containers by id                                                                     │ "
   35    35 │ " │ ( , ) sort containers by image                                                                           │ "
   36    36 │ " │ ( . ) or ( ] ) sort containers by rx                                                                     │ "
   37       │-" │ ( Backspace ) sort containers by tx                                                                      │ "
         37 │+" │ ( Delete ) sort containers by tx                                                                         │ "
   38    38 │ " │ ( a ) or ( b ) close dialog                                                                              │ "
   39    39 │ " │ ( k ) quit at any time                                                                                   │ "
   40    40 │ " │                                                                                                          │ "
   41    41 │ " │                    currently an early work in progress, all and any input appreciated                    │ "
────────────┴───────────────────────────────────────────────────────────────────

Two other test fail similarly

failures:
    ui::draw_blocks::help::tests::test_draw_blocks_help_custom_keymap_one_definition
    ui::draw_blocks::help::tests::test_draw_blocks_help_custom_keymap_two_definitions
    ui::draw_blocks::help::tests::test_draw_blocks_help_one_and_two_definitions

Desktop:

  • OS: MacOS, probably a fairly recent version

Additional context
This issue was caught as part of the regular CI run over at nixpkgs NixOS/nixpkgs#400342

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions