File tree Expand file tree Collapse file tree 3 files changed +15
-7
lines changed Expand file tree Collapse file tree 3 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -38,17 +38,17 @@ environment:
38
38
nodejs_version : " 12"
39
39
SKIP_LEAK : " 1"
40
40
41
- - DB : ' 10.3.25 '
41
+ - DB : ' 10.3.24 '
42
42
MEM : " 21"
43
43
nodejs_version : " 12"
44
44
SKIP_LEAK : " 1"
45
45
46
- - DB : ' 10.2.34 '
46
+ - DB : ' 10.2.33 '
47
47
MEM : " 21"
48
48
nodejs_version : " 12"
49
49
SKIP_LEAK : " 1"
50
50
51
- - DB : ' 10.1.47 '
51
+ - DB : ' 10.1.46 '
52
52
MEM : " 21"
53
53
nodejs_version : " 12"
54
54
SKIP_LEAK : " 1"
Original file line number Diff line number Diff line change @@ -7,9 +7,9 @@ const Conf = require('../conf');
7
7
8
8
describe ( 'change user' , ( ) => {
9
9
before ( ( done ) => {
10
- Promise . allSettled ( [
10
+ Promise . all ( [
11
11
shareConn . query ( "DROP USER IF EXISTS ChangeUser@'%'" ) ,
12
- shareConn . query ( ' DROP USER IF EXISTS' + " ChangeUser2@'%'")
12
+ shareConn . query ( " DROP USER IF EXISTS ChangeUser2@'%'")
13
13
] )
14
14
. then ( ( ) => {
15
15
return shareConn . query ( 'CREATE DATABASE IF NOT EXISTS test' ) ;
Original file line number Diff line number Diff line change @@ -1062,8 +1062,16 @@ describe('Pool', () => {
1062
1062
Promise . all ( requests )
1063
1063
. then ( ( ) => {
1064
1064
setTimeout ( ( ) => {
1065
- assert . equal ( pool . totalConnections ( ) , 8 ) ;
1066
- assert . equal ( pool . idleConnections ( ) , 8 ) ;
1065
+ assert . isTrue (
1066
+ pool . totalConnections ( ) === 8 ||
1067
+ pool . totalConnections ( ) === 9 ||
1068
+ pool . totalConnections ( ) === 10
1069
+ ) ;
1070
+ assert . isTrue (
1071
+ pool . idleConnections ( ) === 8 ||
1072
+ pool . idleConnections ( ) === 9 ||
1073
+ pool . idleConnections ( ) === 10
1074
+ ) ;
1067
1075
} , 5 ) ;
1068
1076
1069
1077
setTimeout ( ( ) => {
You can’t perform that action at this time.
0 commit comments