{"thread":{"id":"31125","subject":"[PATCH 1/2] t1100-*.sh: Fix an intermittent test failure","startedAt":"2012-07-28T18:48:06Z","lastAt":"2012-07-28T18:48:06Z","messageCount":1,"participants":["Ramsay Jones"],"isPatch":true,"patchVersion":1,"patchTotal":2},"messages":[{"id":"196038","messageId":"501433E6.6060904@ramsay1.demon.co.uk","threadId":"31125","inReplyTo":null,"subject":"[PATCH 1/2] t1100-*.sh: Fix an intermittent test failure","fromName":"Ramsay Jones","fromEmail":"ramsay@ramsay1.demon.co.uk","sentAt":"2012-07-28T18:48:06Z","receivedAt":"2012-07-28T18:48:06Z","isPatch":true,"sender":{"key":"ramsay@ramsayjones.plus.com","avatar":"https://avatars.githubusercontent.com/u/33702710?v=4"},"body":"\nIn particular, the final test ('flags and then non flags') fails\nintermittently, depending on how much time elapsed between the\ninvocations of \"git commit-tree\" when creating the commits which\nlater have their commit id's compared. For example, if the commits\nfor childid-3 and childid-4 are created 1 or more seconds apart,\nthen the commits, which would otherwise be identical, will have\ndifferent commit id's.\n\nIn order to make the test reproducible, we remove the variability\nby setting the author and committer times to a well defined state.\nWe accomplish this with a single call to 'test_tick' at the start\nof the test.\n\nSigned-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>\n---\n t/t1100-commit-tree-options.sh | 1 +\n 1 file changed, 1 insertion(+)\n\ndiff --git a/t/t1100-commit-tree-options.sh b/t/t1100-commit-tree-options.sh\nindex a3b7723..f8457f9 100755\n--- a/t/t1100-commit-tree-options.sh\n+++ b/t/t1100-commit-tree-options.sh\n@@ -47,6 +47,7 @@ test_expect_success \\\n \n \n test_expect_success 'flags and then non flags' '\n+\ttest_tick &&\n \techo comment text |\n \tgit commit-tree $(cat treeid) >commitid &&\n \techo comment text |\n-- \n1.7.11.2\n"}]}