diff options
-rwxr-xr-x | t/t1400-update-ref.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/t/t1400-update-ref.sh b/t/t1400-update-ref.sh index 1e754e258f..0d4f73acaa 100755 --- a/t/t1400-update-ref.sh +++ b/t/t1400-update-ref.sh @@ -1603,11 +1603,13 @@ test_expect_success PIPE 'transaction flushes status updates' ' (git update-ref --stdin <in >out &) && exec 9>in && + exec 8<out && test_when_finished "exec 9>&-" && + test_when_finished "exec 8<&-" && echo "start" >&9 && echo "start: ok" >expected && - read line <out && + read line <&8 && echo "$line" >actual && test_cmp expected actual && @@ -1615,7 +1617,7 @@ test_expect_success PIPE 'transaction flushes status updates' ' echo prepare >&9 && echo "prepare: ok" >expected && - read line <out && + read line <&8 && echo "$line" >actual && test_cmp expected actual && @@ -1625,7 +1627,7 @@ test_expect_success PIPE 'transaction flushes status updates' ' echo commit >&9 && echo "commit: ok" >expected && - read line <out && + read line <&8 && echo "$line" >actual && test_cmp expected actual ' |