test: use unix timestamps for test db names

parent 4e7c5fa0
Pipeline #60499829 passed with stages
in 4 minutes and 42 seconds
......@@ -16,7 +16,7 @@ beforeEach(async () => {
useNewUrlParser: true
}
)
db = await connection.db('db-' + Math.floor(Math.random() + 1000))
db = await connection.db('db-' + Date.now())
})
afterEach(async () => {
......
......@@ -17,7 +17,7 @@ beforeEach(async () => {
useNewUrlParser: true
}
)
db = await connection.db('db-' + Math.floor(Math.random() + 1000))
db = await connection.db('db-' + Date.now())
})
afterEach(async () => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment