mirror of
https://github.com/talent-plan/tinykv.git
synced 2024-12-25 20:30:30 +08:00
fix ci error (#445)
This commit is contained in:
parent
58cb4ac018
commit
86a0b62a6c
@ -74,9 +74,15 @@ func TestReadWrite(t *testing.T) {
|
||||
echo "$bench_file" > kv/test_raftstore/bench_test.go
|
||||
go test ./kv/test_raftstore/ -run ReadWrite -v > bench.log
|
||||
score=$(grep QPS: bench.log | awk '{print $3}')
|
||||
rm bench.log
|
||||
|
||||
if [ -z "$score" ]
|
||||
then
|
||||
score=0
|
||||
fi
|
||||
|
||||
if [ $(expr $score \> 1000) ]; then
|
||||
echo "PASS"
|
||||
else
|
||||
echo "FAILED"
|
||||
fi
|
||||
rm bench.log
|
||||
|
Loading…
Reference in New Issue
Block a user