Skip to content

Commit

Permalink
tests: modernize the test script
Browse files Browse the repository at this point in the history
Signed-off-by: aryangupta701 <garyan447@gmail.com>
  • Loading branch information
aryangupta701 committed Feb 26, 2024
1 parent 3c2a3fd commit fee2b9f
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions t/t0010-racy-git.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 fee2b9f

Please sign in to comment.