Skip to content

Commit

Permalink
Fix memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Oct 18, 2012
1 parent 93a0144 commit 000e429
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions test/api-configuration.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ suite('Configuration API', function() {
suite('Action=DescribeIndexFields', function() {
setup(function() {
commonSetup();
domain = new Domain('companies', context);
var domain = new Domain('companies', context);
domain.createSync();
domain.getIndexField('name').setType('text').createSync();
domain.getIndexField('age').setType('uint').createSync();
Expand All @@ -640,7 +640,6 @@ suite('Configuration API', function() {
}

test('all', function(done) {
var domain, field;
utils
.get('/?DomainName=companies&' +
'Action=DescribeIndexFields&Version=2011-02-01')
Expand All @@ -666,7 +665,6 @@ suite('Configuration API', function() {
});

test('specified', function(done) {
var domain, field;
utils
.get('/?DomainName=companies&FieldNames.member.1=name&FieldNames.member.2=age&' +
'Action=DescribeIndexFields&Version=2011-02-01')
Expand All @@ -691,7 +689,6 @@ suite('Configuration API', function() {
});

test('specified (not exists)', function(done) {
var domain, field;
utils
.get('/?DomainName=companies&FieldNames.member.1=unknown&' +
'Action=DescribeIndexFields&Version=2011-02-01')
Expand Down

0 comments on commit 000e429

Please sign in to comment.