fixed one-hang-bug in cocos-console-test.py. [ci skip]

[ci skip], fixed one-hang-bug in cocos-console-test.py.