diff --git a/bench/test-flash-sales.sh b/bench/test-flash-sales.sh index 444aeef..b108040 100755 --- a/bench/test-flash-sales.sh +++ b/bench/test-flash-sales.sh @@ -6,6 +6,7 @@ export LOG_LEVEL=fatal export STORE_DRIVER=redis export STORE_HOST=localhost export STORE_PORT=6379 +export BUSI_REDIS=localhost:6379 ./bench redis & echo 'sleeping 3s for dtm bench to run up.' && sleep 3 curl "http://127.0.0.1:8083/api/busi_bench/benchFlashSalesReset" diff --git a/test/busi/base_types.go b/test/busi/base_types.go index 2d24948..c20ba89 100644 --- a/test/busi/base_types.go +++ b/test/busi/base_types.go @@ -131,6 +131,7 @@ type mainSwitchType struct { // MainSwitch controls busi success or fail var MainSwitch mainSwitchType +// GetRedisAccountKey return redis key for uid func GetRedisAccountKey(uid int) string { return fmt.Sprintf("{a}-redis-account-key-%d", uid) }