Skip to content

Commit

Permalink
yz_index => search_index
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Popov committed Nov 27, 2014
1 parent 2f09be7 commit 5ad58ca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/2.0-specific/http-yokozuna-client-test.js
Expand Up @@ -16,13 +16,13 @@ describe('http-client-solr-tests', function() {
name_s: 'Testy Test for Riak Search'
};

db.saveBucket(bucket, {yz_index: "_dont_index_"}, function (err) {
db.saveBucket(bucket, {search_index: "_dont_index_"}, function (err) {
setTimeout(function () {
db.yokozuna.removeIndex(yzIndex, function (err) {
setTimeout(function () {
db.yokozuna.createIndex(yzIndex, function (err) {
setTimeout(function () {
db.saveBucket(bucket, {yz_index: yzIndex}, function (err) {
db.saveBucket(bucket, {search_index: yzIndex}, function (err) {
setTimeout(function () {
db.save(bucket, 'test-search@gmail.com', obj, function (err, data, meta) {
setTimeout(function () {
Expand Down Expand Up @@ -54,7 +54,7 @@ describe('http-client-solr-tests', function() {
});

it('saves the index bucket property', function (done) {
db.saveBucket(bucket, { yz_index: yzIndex }, function (err) {
db.saveBucket(bucket, { search_index: yzIndex }, function (err) {
should.not.exist(err);

done();
Expand All @@ -63,7 +63,7 @@ describe('http-client-solr-tests', function() {

it('gets the index bucket property', function (done) {
db.getBucket(bucket, function (err, props) {
props.yz_index.should.equal(yzIndex);
props.search_index.should.equal(yzIndex);
done();
});
});
Expand Down

0 comments on commit 5ad58ca

Please sign in to comment.