]> git.notmuchmail.org Git - notmuch/commit
test: Fix race condition in T568-lib-thread.sh
authorDavid Bremner <david@tethera.net>
Mon, 15 Feb 2021 00:55:55 +0000 (20:55 -0400)
committerDavid Bremner <david@tethera.net>
Thu, 18 Feb 2021 11:15:47 +0000 (07:15 -0400)
commita37d5f5976de07b36141aa6b4a98cf913a3cf2fe
tree6aa737a0d4d406f5f31d88ed6c3eb27f90c06eaf
parent6db8b422d91a75b7c16f013f10f41d1109ce5866
test: Fix race condition in T568-lib-thread.sh

The assignment of thread-ids is (apparently) non-deterministic in a
way that mostly seems to show up on multicore machines. In my tests
the number is different from that previously assumed by this test
about 15% of the time on a 50 thread (25 core) Xeon.

Since message id's are fixed, use a message known to be in the thread
of interest to pick out the correct thread-id.
test/T568-lib-thread.sh