Skip to content

Commit 9d0a1f6

Browse files
authored
Added more core tests, Improve test coverage (#5791)
1 parent adcaac1 commit 9d0a1f6

File tree

8 files changed

+1239
-40
lines changed

8 files changed

+1239
-40
lines changed

.github/workflows/core.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
ubuntu:
1010
runs-on: ubuntu-latest
1111
if: "!contains(github.event.head_commit.message, '--filter=') || contains(github.event.head_commit.message, '[core]')"
12-
timeout-minutes: 10
12+
timeout-minutes: 12
1313
services:
1414
tinyproxy:
1515
image: "vimagick/tinyproxy"

core-tests/include/test_core.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,10 @@
6666

6767
#ifdef SW_VERBOSE
6868
#define DEBUG() swoole::test::debug_output.get()
69+
#define debug_info printf
6970
#else
7071
#define DEBUG() swoole::test::null_stream
72+
#define debug_info(...)
7173
#endif
7274

7375
namespace swoole {

core-tests/src/main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ static void init_root_path(const char *);
1111

1212
int main(int argc, char **argv) {
1313
swoole_init();
14+
SwooleG.max_sockets = 20000;
1415
init_root_path(argv[0]);
1516

1617
if (getenv("DISPLAY_BACKTRACE") != nullptr) {

0 commit comments

Comments
 (0)