File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -31,13 +31,21 @@ var oracledb = require('oracledb');
31
31
var should = require ( 'should' ) ;
32
32
var async = require ( 'async' ) ;
33
33
var dbConfig = require ( './dbconfig.js' ) ;
34
- var testsUtil = require ( './testsUtil.js' ) ;
34
+
35
+ function generateRandomPassword ( length ) {
36
+ let result = "" ;
37
+ const choices = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" ;
38
+ for ( let i = 0 ; i < length ; i ++ ) {
39
+ result += choices . charAt ( Math . floor ( Math . random ( ) * choices . length ) ) ;
40
+ }
41
+ return result ;
42
+ }
35
43
36
44
describe ( '160. editionTest.js' , function ( ) {
37
45
38
46
var dbaConn ;
39
47
var isRunnable ;
40
- var nodbSchemaEditionPassword = testsUtil . generateRandomPassword ( ) ;
48
+ var nodbSchemaEditionPassword = generateRandomPassword ( 6 ) ;
41
49
42
50
before ( function ( done ) {
43
51
var conn ;
You can’t perform that action at this time.
0 commit comments