Skip to content

Commit f24eaf4

Browse files
tgummerergitster
authored andcommitted
t5570: drop racy test
t5570 being racy has been reported twice separately on the mailing list [*1*, *2*]. To make the test race proof, we'd either have to introduce another fifo the test snippet is waiting on, or somehow convincing "cat" to flush (and let us know when it has). Which really implies killing the daemon, and wait()ing on cat to process the EOF and exit. And that makes the tests a lot more expensive if we have to start the daemon for each snippet. As this is a test for a relatively minor fix (according to the author) in 19136be ("daemon: fix off-by-one in logging extended attributes", 2018-01-24), drop it to avoid this racyness. It doesn't seem worth making the test code much more complex, or slowing down all tests just to keep this one. *1*: 1522783990.964448.1325338528.0D49CC15@webmail.messagingengine.com/ *2*: [email protected] Reported-by: Jan Palus <[email protected]> Reported-by: Torsten Bögershausen <[email protected]> Helped-by: Jeff King <[email protected]> Signed-off-by: Thomas Gummerer <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b21ebb6 commit f24eaf4

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

t/t5570-git-daemon.sh

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -183,19 +183,6 @@ test_expect_success 'hostname cannot break out of directory' '
183183
git ls-remote "$GIT_DAEMON_URL/escape.git"
184184
'
185185

186-
test_expect_success 'daemon log records all attributes' '
187-
cat >expect <<-\EOF &&
188-
Extended attribute "host": localhost
189-
Extended attribute "protocol": version=1
190-
EOF
191-
>daemon.log &&
192-
GIT_OVERRIDE_VIRTUAL_HOST=localhost \
193-
git -c protocol.version=1 \
194-
ls-remote "$GIT_DAEMON_URL/interp.git" &&
195-
grep -i extended.attribute daemon.log | cut -d" " -f2- >actual &&
196-
test_cmp expect actual
197-
'
198-
199186
test_expect_success FAKENC 'hostname interpolation works after LF-stripping' '
200187
{
201188
printf "git-upload-pack /interp.git\n\0host=localhost" | packetize

0 commit comments

Comments
 (0)