Skip to content

Commit 02f64ce

Browse files
committed
(fix) game hook test
1 parent c51af16 commit 02f64ce

File tree

5 files changed

+13
-2
lines changed

5 files changed

+13
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.idea/
22
.vscode/
3+
__pycache__/
34
# Compiled class file
45
*.class
56

game-hook-template/src/main/java/cn/leancloud/play/hook/template/MasterIsWatchingYouHook.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import java.util.ArrayList;
1313
import java.util.List;
1414

15+
1516
public class MasterIsWatchingYouHook extends AbstractGameHook {
1617
@Override
1718
public void onBeforeRaiseRpc(BeforeRaiseRpcContext ctx) {
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
[local]
3+
APPID=hahahahaha-long-long-long-long-local-appid
4+
APPKEY=keykeykeykey
5+
APP_MASTER_KEY=master-key
6+
GAME_ROUTER_URL=http://localhost:8081/v1
7+
GAME_ROUTER_INTERNAL_URL=http://localhost:8081
8+
GAME_ROUTER_AUTH_KEY=key-auth-key
9+
TEST_WITH_HOOK=True

integration-test-scripts/run-tests.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
RED='\033[0;31m'
44
NC='\033[0m'
55

6-
CONFIG_TAG="q0"
6+
CONFIG_TAG="local"
77

88
export PYTHONPATH=../testing-tools
99

@@ -29,7 +29,7 @@ if [ "$#" == 2 ]; then
2929
CONFIG_TAG=$1
3030
execute_test $2
3131
else
32-
for i in *.py; do
32+
for i in test_*.py; do
3333
execute_test $i
3434
sleep 0.5
3535
done
File renamed without changes.

0 commit comments

Comments
 (0)