purebred-mua / purebred

A terminal based mail user agent based on notmuch
GNU Affero General Public License v3.0
139 stars 19 forks source link

UAT: compose mail from draft test flaky #423

Open romanofski opened 3 years ago

romanofski commented 3 years ago

Describe the bug The "compose mail from draft" test failed only on the GHC 8.6.5 run:

  compose mail from draft:                                  FAIL (7.88s)
    start composition       (0.05s)
    accept default          (0.03s)
    enter to: email         (0.12s)
    leave default           (0.22s)
    enter mail body         (0.04s)
    exit insert mode in vim (0.02s)
    exit vim                (0.05s)
    abort composition       (0.07s)
    confirm Keep            (7.09s)
      src/Test/Tasty/Tmux.hs:445:
      Condition not met: 'Substring "Draft saved"'.  Last capture:

        Aug'17 frase@host.exa (1) inbox Testmail with whitespace in the subject        
       Aug'17 rjoost@url.use (1) inbox replied This is Purebred                       
       Feb'17 Róman Joost    (2) inbox WIP Refactor                                   
       Nov'16 frase@host.exa (1) inbox HTML mail                                      

      Purebred: Item 1 of 4 [ New: 4  ]                       Threads-List of Threads 
      Query: tag:inbox                                                                

       raw: "\ESC[37m\ESC[43m Aug'17 frase@host.exa (1) \ESC[36minbox\ESC[37m Testmail with whitespace in the subject        \n\ESC[34m\ESC[49m Aug'17 rjoost@url.use (1) \ESC[36minbox\ESC[34m \ESC[36mreplied\ESC[34m This is Purebred                       \n\ESC[37m Feb'17 R\243man Joost    (2) \ESC[36minbox\ESC[37m WIP Refactor                                   \n Nov'16 frase@host.exa (1) \ESC[36minbox\ESC[37m HTML mail                                      \n\ESC[34m                                                                                \n                                                                                \n                                                                                \n                                                                                \n                                                                                \n                                                                                \n                                                                                \n                                                                                \n                                                                                \n                                                                                \n                                                                                \n                                                                                \n                                                                                \n                                                                                \n                                                                                \n                                                                                \n                                                                                \n                                                                                \n\ESC[30m\ESC[43mPurebred: Item 1 of 4 [ New: 4  ]                       Threads-List of Threads \n\ESC[33m\ESC[40mQuery: \ESC[34mtag:inbox                                                                \n"

To Reproduce Steps to reproduce the behavior: None yet

Expected behavior Test passes

Screenshots See description.

Additional context None