Skip to content

Commit 3084877

Browse files
authored
Update testTable.js
1 parent df8aabd commit 3084877

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/testTable.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ var db = new aws.DynamoDB({ endpoint: 'http://localhost:8000' });
1212

1313
describe("Check Table operations", function() {
1414
describe("#create table", function() {
15+
this.timeout(50000);
1516
it("should create a table if not existing", function(done) {
1617
var params = {
1718
TableName : "Movies",
@@ -45,6 +46,7 @@ describe("Check Table operations", function() {
4546
});
4647

4748
describe("#delete table", function(){
49+
this.timeout(50000);
4850
it("should delete the table", function(done){
4951
var params = {"TableName":"Movies"};
5052

@@ -61,6 +63,7 @@ describe("Check Table operations", function() {
6163
});
6264

6365
describe("#update table", function(){
66+
this.timeout(50000);
6467
it("should update the table", function(done){
6568
var params = {
6669
"AttributeDefinitions": [
@@ -88,6 +91,7 @@ describe("Check Table operations", function() {
8891
});
8992
});
9093
describe("queue-handler", function() {
94+
this.timeout(50000);
9195
it("should connect to dynamodb and list tables", function(done) {
9296
db.listTables({}, function(err, data) {
9397
if(err){
@@ -101,6 +105,7 @@ describe("Check Table operations", function() {
101105
});
102106

103107
describe("#getItems", function() {
108+
this.timeout(50000);
104109
var tableDes = db.getItem({"TableName": "Movies"})
105110
it("Retrieve hostname from created tables", function() {
106111
assert.equal(tableDes.httpRequest.endpoint.hostname,"localhost");

0 commit comments

Comments
 (0)