Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: DataDog/dd-trace-js
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: f090e9a39a12c279b5e89eb722eea2b84453339d
Choose a base ref
..
head repository: DataDog/dd-trace-js
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: a4dee821b59049b493c49a81353c640fb4047ea7
Choose a head ref
Showing with 2 additions and 2 deletions.
  1. +2 −2 packages/datadog-plugin-mongoose/test/index.spec.js
4 changes: 2 additions & 2 deletions packages/datadog-plugin-mongoose/test/index.spec.js
Original file line number Diff line number Diff line change
@@ -19,10 +19,10 @@ describe('Plugin', () => {
// This needs to be called synchronously right before each test to make
// sure a connection is not already established and the request is added
// to the queue.
async function connect () {
function connect () {
// mongoose.connect('mongodb://username:password@host:port/database?options...');
// actually the first part of the path is the dbName and not the collection
await mongoose.connect(`mongodb://localhost:27017/${dbName}`, {
mongoose.connect(`mongodb://localhost:27017/${dbName}`, {
useNewUrlParser: true,
useUnifiedTopology: true
})