File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 23
23
*
24
24
* DESCRIPTION
25
25
* Test "Connection.callTimeout" property.
26
+ * This test requries NODE_ORACLEDB_QA environment variable to be true.
27
+ * Because test cases use the hard-code variables TIME_OUT and
28
+ * DB_OP_TIME which are not stable in all network situations.
26
29
*
27
30
*****************************************************************************/
28
31
'use strict' ;
@@ -39,7 +42,10 @@ describe('222. callTimeout.js', function() {
39
42
let conn ;
40
43
41
44
before ( async function ( ) {
42
- isRunnable = await testsUtil . checkPrerequisites ( ) ;
45
+
46
+ const isQA = dbconfig . test . NODE_ORACLEDB_QA ;
47
+ const prep = await testsUtil . checkPrerequisites ( ) ;
48
+ isRunnable = isQA && prep ;
43
49
if ( ! isRunnable ) {
44
50
this . skip ( ) ;
45
51
return ;
Original file line number Diff line number Diff line change @@ -69,6 +69,15 @@ if (process.env.NODE_ORACLEDB_EXTERNALAUTH) {
69
69
}
70
70
}
71
71
72
+ if ( process . env . NODE_ORACLEDB_QA ) {
73
+ let isQA = process . env . NODE_ORACLEDB_QA ;
74
+ isQA = String ( isQA ) ;
75
+ isQA = isQA . toLowerCase ( ) ;
76
+ if ( isQA == 'true' ) {
77
+ config . test . NODE_ORACLEDB_QA = true ;
78
+ }
79
+ }
80
+
72
81
if ( process . env . NODE_ORACLEDB_DBA_PRIVILEGE ) {
73
82
var priv = process . env . NODE_ORACLEDB_DBA_PRIVILEGE ;
74
83
priv = String ( priv ) ;
You can’t perform that action at this time.
0 commit comments