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');
3131var should = require ( 'should' ) ;
3232var async = require ( 'async' ) ;
3333var 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+ }
3543
3644describe ( '160. editionTest.js' , function ( ) {
3745
3846 var dbaConn ;
3947 var isRunnable ;
40- var nodbSchemaEditionPassword = testsUtil . generateRandomPassword ( ) ;
48+ var nodbSchemaEditionPassword = generateRandomPassword ( 6 ) ;
4149
4250 before ( function ( done ) {
4351 var conn ;
You can’t perform that action at this time.
0 commit comments