@@ -12,6 +12,7 @@ var db = new aws.DynamoDB({ endpoint: 'http://localhost:8000' });
12
12
13
13
describe ( "Check Table operations" , function ( ) {
14
14
describe ( "#create table" , function ( ) {
15
+ this . timeout ( 50000 ) ;
15
16
it ( "should create a table if not existing" , function ( done ) {
16
17
var params = {
17
18
TableName : "Movies" ,
@@ -45,6 +46,7 @@ describe("Check Table operations", function() {
45
46
} ) ;
46
47
47
48
describe ( "#delete table" , function ( ) {
49
+ this . timeout ( 50000 ) ;
48
50
it ( "should delete the table" , function ( done ) {
49
51
var params = { "TableName" :"Movies" } ;
50
52
@@ -61,6 +63,7 @@ describe("Check Table operations", function() {
61
63
} ) ;
62
64
63
65
describe ( "#update table" , function ( ) {
66
+ this . timeout ( 50000 ) ;
64
67
it ( "should update the table" , function ( done ) {
65
68
var params = {
66
69
"AttributeDefinitions" : [
@@ -88,6 +91,7 @@ describe("Check Table operations", function() {
88
91
} ) ;
89
92
} ) ;
90
93
describe ( "queue-handler" , function ( ) {
94
+ this . timeout ( 50000 ) ;
91
95
it ( "should connect to dynamodb and list tables" , function ( done ) {
92
96
db . listTables ( { } , function ( err , data ) {
93
97
if ( err ) {
@@ -101,6 +105,7 @@ describe("Check Table operations", function() {
101
105
} ) ;
102
106
103
107
describe ( "#getItems" , function ( ) {
108
+ this . timeout ( 50000 ) ;
104
109
var tableDes = db . getItem ( { "TableName" : "Movies" } )
105
110
it ( "Retrieve hostname from created tables" , function ( ) {
106
111
assert . equal ( tableDes . httpRequest . endpoint . hostname , "localhost" ) ;
0 commit comments