[LBBS-145] test_mail_stress: SEARCH test is flaky
Our expectation the response will always contain * SEARCH 1 is flawed:
2026-03-11T20:31:18.1651630Z [2026-03-11 20:31:00.626] [1;32m DEBUG[0m[40112]: [1;37mnet_imap.c:5093 handle_client[0m: 0x7f5f4deca7e0 => c3 SEARCH HEADER "From" "1337"
2026-03-11T20:31:18.1652235Z [2026-03-11 20:31:01.931] [1;32m DEBUG[0m[40112]: [1;37mimap_server_search.c:1284 handle_search[0m: 0x7f5f4deca7e0 <= * SEARCH 764 10764 20764 30764 40764 50764 60764 70764
2026-03-11T20:31:18.1652734Z [2026-03-11 20:31:01.931] [1;32m DEBUG[0m[40112]: [1;37mimap_server_search.c:1293 handle_search[0m: 0x7f5f4deca7e0 <= c3 OK SEARCH completed
2026-03-11T20:31:18.1653371Z [2026-03-11 20:31:01.931] [1;31mWARNING[0m: test.c:343 test_client_expect_buf: Failed to receive expected output at line 248: * SEARCH 1 (got * SEARCH 764 10764 20764 30764 40764 50764 60764 70764
2026-03-11T20:31:18.1653441Z )
2026-03-11T20:31:18.1653827Z [2026-03-11 20:31:01.931] [1;32m DEBUG[0m: test.c:1266 run_test: Test '/__w/lbbs/lbbs/tests/test_mail_stress.so' returned -1
Also, side note, it's especially a pain when this test is flaky, since 125 MB of the 280 of logs from all the tests are just due to running test_mail_stress in Debian 13 (due to the sheer volume of debugging from the SMTP portion of sending 10,000 messages at debug level 10).
Comments
You must be logged in to leave a comment.