Skip to content

Commit

Permalink
tests: modernize the test script t0010-racy-git.sh
Browse files Browse the repository at this point in the history
Modernize the formatting of the test script to align with current
standards and improve its overall readability.

Signed-off-by: Aryan Gupta <garyan447@gmail.com>
  • Loading branch information
aryangupta701 committed Feb 28, 2024
1 parent 3c2a3fd commit 0637711
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions t/t0010-racy-git.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

test_description='racy GIT'
test_description='racy git'

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
Expand All @@ -16,19 +16,18 @@ do
echo xyzzy >infocom

files=$(git diff-files -p)
test_expect_success \
"Racy GIT trial #$trial part A" \
'test "" != "$files"'
test_expect_success 'Racy git trial #$trial part A' '
test "" != "$files"
'

sleep 1
echo xyzzy >cornerstone
git update-index --add cornerstone

files=$(git diff-files -p)
test_expect_success \
"Racy GIT trial #$trial part B" \
'test "" != "$files"'

test_expect_success 'Racy git trial #$trial part B' '
test "" != "$files"
'
done

test_done

0 comments on commit 0637711

Please sign in to comment.