mirror of
https://github.com/hengyoush/kyanos.git
synced 2025-12-20 01:03:46 +08:00
test: fix e2e test
This commit is contained in:
4
testdata/test_redis.sh
vendored
4
testdata/test_redis.sh
vendored
@@ -30,7 +30,7 @@ function test_redis_client() {
|
||||
cat "${CLIENT_LNAME}"
|
||||
docker rm -f $cid1 || true
|
||||
# check_time_detail_completed_with_last_lines "${LNAME}" 3
|
||||
check_patterns_in_file_with_last_lines "${CLIENT_LNAME}" "HGET" 3
|
||||
check_patterns_in_file "${CLIENT_LNAME}" "HGET"
|
||||
}
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ function test_redis_server() {
|
||||
cat "${SERVER_LNAME}"
|
||||
docker rm -f $cid1 || true
|
||||
# check_time_detail_completed_with_last_lines "${LNAME}" 3
|
||||
check_patterns_in_file_with_last_lines "${SERVER_LNAME}" "HGET" 3
|
||||
check_patterns_in_file "${SERVER_LNAME}" "HGET"
|
||||
}
|
||||
|
||||
|
||||
|
||||
2
testdata/test_side.sh
vendored
2
testdata/test_side.sh
vendored
@@ -62,7 +62,7 @@ function test_side_client_nonmatch() {
|
||||
|
||||
timeout 30 ${CMD} watch --debug-output mysql --side server 2>&1 | tee "${CLIENT_NONMATCH_LNAME}" &
|
||||
sleep 10
|
||||
python3 ./testdata/query_mysql.py 5
|
||||
python3 ./testdata/query_mysql.py 20
|
||||
wait
|
||||
|
||||
cat "${CLIENT_NONMATCH_LNAME}"
|
||||
|
||||
Reference in New Issue
Block a user