-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Hi :)
I am currently developing a REST-Server which uses oracledb. When this server starts, a connection pool gets created. On every request a connection is opened from this pool and closed after the request is finished.
Now I want to this test this server with mocha, and before each test I want to start the server and after each test I want to close it. Every time the server is closed, the connection pool gets closed too.
The problem is, that after I closed my pool via pool.close()
, it seems that every new pool created via oracledb.createPool()
is invalid.
I don't know what exactly is the problem, because when oracledb.createPool()
gets called, the error object in the callback is null. I only get an error when trying to create a new connection via pool.getConnection()
. The error message is the following:
NJS-002: invalid pool
I don't know if this is a bug or if I am doing something wrong, hope you can help me :)