Skip to content

Commit

Permalink
Short disttxn testcase
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Hannum <[email protected]>
  • Loading branch information
markhannum committed Jan 27, 2025
1 parent 24f6a0f commit 10c64c9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion tests/disttxn.test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ else
endif

ifeq ($(TEST_TIMEOUT),)
export TEST_TIMEOUT=30m
export TEST_TIMEOUT=20m
endif
20 changes: 10 additions & 10 deletions tests/disttxn.test/runit
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ function setup
function basic_test
{
typeset j=0
typeset cnt=${1:-3}
typeset cnt=${1:-1}
while [[ $j -lt $cnt ]]; do
insert_records_basic
delete_records
Expand All @@ -786,7 +786,7 @@ function bulk_test
typeset cnt=${1:-1}
typeset j=0
while [[ $j -lt "$cnt" ]]; do
insert_records_bulk 2000 20
insert_records_bulk 1000 20
delete_records
let j=j+1
done
Expand Down Expand Up @@ -1883,7 +1883,7 @@ function participant_constraint_violation
{
typeset j=0
typeset r=0
while [[ $j -lt 200 ]]; do
while [[ $j -lt 10 ]]; do
startms=$(timems)
echo "begin
insert into t1(a) values($j)
Expand Down Expand Up @@ -1987,7 +1987,7 @@ commit
function coordinator_constraint_violation
{
typeset j=0
while [[ $j -lt 200 ]]; do
while [[ $j -lt 10 ]]; do
startms=$(timems)
echo "begin
insert into t1(a) values($j)
Expand Down Expand Up @@ -2584,7 +2584,7 @@ function non_durable_commit
function non_durable_loop
{
typeset i=0
while [[ "$i" -lt "10" ]]; do
while [[ "$i" -lt "2" ]]; do
let i=i+1
echo "non-durable-loop iteration $i"
non_durable_commit
Expand Down Expand Up @@ -3223,7 +3223,7 @@ function test_update_same_records
function test_compound_distributed_deadlocks
{
typeset cnt=0
while [[ "$cnt" -lt 5 ]]; do
while [[ "$cnt" -lt 2 ]]; do
let cnt=cnt+1
echo "Test distributed-deadlocks compound iteration $cnt"
distributed_deadlocks_compound
Expand All @@ -3244,7 +3244,7 @@ function test_compound_distributed_deadlocks_try1
function test_deadlocks
{
typeset cnt=0
while [[ "$cnt" -lt 10 ]]; do
while [[ "$cnt" -lt 1 ]]; do
let cnt=cnt+1
echo "Test deadlocks iteration $cnt"
random_deadlocks
Expand All @@ -3264,7 +3264,7 @@ function test_verify_retry
function test_verify_participant_constraint_violation
{
typeset cnt=0
while [[ "$cnt" -lt 5 ]]; do
while [[ "$cnt" -lt 2 ]]; do
let cnt=cnt+1
echo "Test participant-constraint-violation-verify-errors iteration $cnt"
random_verify_participant_constraint_violation
Expand All @@ -3274,7 +3274,7 @@ function test_verify_participant_constraint_violation
function test_verify_coordinator_constraint_violation
{
typeset cnt=0
while [[ "$cnt" -lt 5 ]]; do
while [[ "$cnt" -lt 2 ]]; do
let cnt=cnt+1
echo "Test participant-constraint-violation-verify-errors iteration $cnt"
random_verify_coordinator_constraint_violation
Expand All @@ -3296,7 +3296,7 @@ function verify_retry_loop
function simple_test
{
typeset cnt=0
while [[ "$cnt" -lt 3 ]]; do
while [[ "$cnt" -lt 1 ]]; do
let cnt=cnt+1
echo "Test loop iteration $cnt"
bulk_test 1
Expand Down

0 comments on commit 10c64c9

Please sign in to comment.