fjvallarino/monomer

test failures on macosx (on Github actions macos-latest only)

smunix opened this issue · 3 comments

These tests passed on Linux build with Github actions, but fail when run on macosx:

Failures:

  test/unit/Monomer/Widgets/Singles/TextAreaSpec.hs:108:5: 
  1) Widgets.Singles.TextArea.handleEvent should copy and paste text around
       expected: "This long text is some long text"
        but got: "This is some long text"

  To rerun use: --match "/Widgets/Singles/TextArea/handleEvent/should copy and paste text around/"

  test/unit/Monomer/Widgets/Singles/TextAreaSpec.hs:113:5: 
  2) Widgets.Singles.TextArea.handleEvent should cut and paste text around
       expected: "This text is long"
        but got: "This is long"

  To rerun use: --match "/Widgets/Singles/TextArea/handleEvent/should cut and paste text around/"

  test/unit/Monomer/Widgets/Singles/TextAreaSpec.hs:176:5: 
  3) Widgets.Singles.TextArea.handleEventValue should input 'abc123', move to beginning, select three letters, copy, move to end, paste
       expected: TextChanged "abc123abc"
        but got: TextChanged "abc123"

  To rerun use: --match "/Widgets/Singles/TextArea/handleEventValue/should input 'abc123', move to beginning, select three letters, copy, move to end, paste/"

  test/unit/Monomer/Widgets/Singles/TextFieldSpec.hs:98:5: 
  4) Widgets.Singles.TextField.handleEvent should copy and paste text around
       expected: "This long text is some long text"
        but got: "This is some long text"

  To rerun use: --match "/Widgets/Singles/TextField/handleEvent/should copy and paste text around/"

  test/unit/Monomer/Widgets/Singles/TextFieldSpec.hs:103:5: 
  5) Widgets.Singles.TextField.handleEvent should cut and paste text around
       expected: "This text is long"
        but got: "This is long"

  To rerun use: --match "/Widgets/Singles/TextField/handleEvent/should cut and paste text around/"

  test/unit/Monomer/Widgets/Singles/TextFieldSpec.hs:161:5: 
  6) Widgets.Singles.TextField.handleEventValue should input 'abc123', move to beginning, select three letters, copy, move to end, paste
       expected: TextChanged "abc123abc"
        but got: TextChanged "abc123"

  To rerun use: --match "/Widgets/Singles/TextField/handleEventValue/should input 'abc123', move to beginning, select three letters, copy, move to end, paste/"

Randomized with seed 1908487119

@smunix interesting. I work mainly on macOS, and all the tests pass on my machine. I'll take a look, although I wonder if this is related to the hardware where the tests are being run.

@fjvallarino Right! It passes on my macOS laptop too, but fails when run on github actions provided macos-latest platform.

@smunix I'm going to close this issue for the time being. I don't have a solution, and the tests work fine on a real macOS machine.

If you have any ideas on how to fix it, please let me know and I'll give it a try. Thanks!