Skip to content

Commit

Permalink
lightning: fix integration test (#39697)
Browse files Browse the repository at this point in the history
Co-authored-by: Ti Chi Robot <[email protected]>
  • Loading branch information
dsdashun and ti-chi-bot authored Dec 7, 2022
1 parent a0a16d7 commit 26bbb71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion br/tests/lightning_fail_fast/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ for CFG in chunk engine; do
! run_lightning --backend tidb --enable-checkpoint=0 --log-file "$TEST_DIR/lightning-tidb.log" --config "tests/$TEST_NAME/$CFG.toml"
[ $? -eq 0 ]

tail -n 10 $TEST_DIR/lightning-tidb.log | grep "ERROR" | tail -n 1 | grep -Fq "Error 1062: Duplicate entry '1-1' for key 'tb.uq'"
tail -n 10 $TEST_DIR/lightning-tidb.log | grep "ERROR" | tail -n 1 | grep -Fq "Error 1062 (23000): Duplicate entry '1-1' for key 'tb.uq'"

! grep -Fq "restore file completed" $TEST_DIR/lightning-tidb.log
[ $? -eq 0 ]
Expand Down

0 comments on commit 26bbb71

Please sign in to comment.