Skip to content

Commit 796298f

Browse files
committed
test fixes
1 parent f08ad76 commit 796298f

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

test/functional/promote_buffers_tests.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ exports['should correctly honor promoteBuffers when creating an instance using D
3131
}
3232
}
3333

34-
exports['should correctly honor promoteValues when creating an instance using MongoClient'] = {
34+
exports['should correctly honor promoteBuffers when creating an instance using MongoClient'] = {
3535
// Add a tag that our runner can trigger on
3636
// in this case we are setting that node needs to be higher than 0.10.X to run
3737
metadata: { requires: { topology: ['single', 'replicaset', 'sharded', 'ssl', 'heap', 'wiredtiger'] } },
@@ -46,12 +46,12 @@ exports['should correctly honor promoteValues when creating an instance using Mo
4646
MongoClient.connect(configuration.url(), {
4747
promoteBuffers: true,
4848
}, function(err, db) {
49-
db.collection('shouldCorrectlyHonorPromoteValues2').insert({
49+
db.collection('shouldCorrectlyHonorPromoteBuffer2').insert({
5050
doc: new Buffer(256)
5151
}, function(err, doc) {
5252
test.equal(null, err);
5353

54-
db.collection('shouldCorrectlyHonorPromoteValues2').findOne(function(err, doc) {
54+
db.collection('shouldCorrectlyHonorPromoteBuffer2').findOne(function(err, doc) {
5555
test.equal(null, err);
5656
test.ok(doc.doc instanceof Buffer);
5757

@@ -63,7 +63,7 @@ exports['should correctly honor promoteValues when creating an instance using Mo
6363
}
6464
}
6565

66-
exports['should correctly honor promoteValues at cursor level'] = {
66+
exports['should correctly honor promoteBuffers at cursor level'] = {
6767
// Add a tag that our runner can trigger on
6868
// in this case we are setting that node needs to be higher than 0.10.X to run
6969
metadata: { requires: { topology: ['single', 'replicaset', 'sharded', 'ssl', 'heap', 'wiredtiger'] } },
@@ -78,12 +78,12 @@ exports['should correctly honor promoteValues at cursor level'] = {
7878
MongoClient.connect(configuration.url(), {
7979
promoteBuffers: true,
8080
}, function(err, db) {
81-
db.collection('shouldCorrectlyHonorPromoteValues3').insert({
81+
db.collection('shouldCorrectlyHonorPromoteBuffer3').insert({
8282
doc: new Buffer(256)
8383
}, function(err, doc) {
8484
test.equal(null, err);
8585

86-
db.collection('shouldCorrectlyHonorPromoteValues3').find().next(function(err, doc) {
86+
db.collection('shouldCorrectlyHonorPromoteBuffer3').find().next(function(err, doc) {
8787
test.equal(null, err);
8888
test.ok(doc.doc instanceof Buffer);
8989

@@ -95,7 +95,7 @@ exports['should correctly honor promoteValues at cursor level'] = {
9595
}
9696
}
9797

98-
exports['should correctly honor promoteValues at cursor find level'] = {
98+
exports['should correctly honor promoteBuffers at cursor find level'] = {
9999
// Add a tag that our runner can trigger on
100100
// in this case we are setting that node needs to be higher than 0.10.X to run
101101
metadata: { requires: { topology: ['single', 'replicaset', 'sharded', 'ssl', 'heap', 'wiredtiger'] } },
@@ -109,12 +109,12 @@ exports['should correctly honor promoteValues at cursor find level'] = {
109109

110110
MongoClient.connect(configuration.url(), {
111111
}, function(err, db) {
112-
db.collection('shouldCorrectlyHonorPromoteValues4').insert({
112+
db.collection('shouldCorrectlyHonorPromoteBuffer4').insert({
113113
doc: new Buffer(256)
114114
}, function(err, doc) {
115115
test.equal(null, err);
116116

117-
db.collection('shouldCorrectlyHonorPromoteValues4').find({}, {}, {promoteBuffers: true}).next(function(err, doc) {
117+
db.collection('shouldCorrectlyHonorPromoteBuffer4').find({}, {}, {promoteBuffers: true}).next(function(err, doc) {
118118
test.equal(null, err);
119119
test.ok(doc.doc instanceof Buffer);
120120

@@ -126,7 +126,7 @@ exports['should correctly honor promoteValues at cursor find level'] = {
126126
}
127127
}
128128

129-
exports['should correctly honor promoteValues at aggregate level'] = {
129+
exports['should correctly honor promoteBuffers at aggregate level'] = {
130130
// Add a tag that our runner can trigger on
131131
// in this case we are setting that node needs to be higher than 0.10.X to run
132132
metadata: { requires: { topology: ['single', 'replicaset', 'sharded', 'ssl', 'heap', 'wiredtiger'] } },
@@ -140,12 +140,12 @@ exports['should correctly honor promoteValues at aggregate level'] = {
140140

141141
MongoClient.connect(configuration.url(), {
142142
}, function(err, db) {
143-
db.collection('shouldCorrectlyHonorPromoteValues5').insert({
143+
db.collection('shouldCorrectlyHonorPromoteBuffer5').insert({
144144
doc: new Buffer(256)
145145
}, function(err, doc) {
146146
test.equal(null, err);
147147

148-
db.collection('shouldCorrectlyHonorPromoteValues5').aggregate([{$match: {}}], {promoteBuffers: true}).next(function(err, doc) {
148+
db.collection('shouldCorrectlyHonorPromoteBuffer5').aggregate([{$match: {}}], {promoteBuffers: true}).next(function(err, doc) {
149149
test.equal(null, err);
150150
test.ok(doc.doc instanceof Buffer);
151151

0 commit comments

Comments
 (0)