@@ -10,6 +10,7 @@ var db = new aws.DynamoDB({ endpoint: "http://localhost:8000" });
10
10
var dbClient = new aws . DynamoDB . DocumentClient ( { endpoint : "http://localhost:8000" } ) ;
11
11
12
12
describe ( "#Add Items" , function ( ) {
13
+ this . timeout ( 15000 ) ;
13
14
it ( "should add item to table" , function ( done ) {
14
15
{
15
16
var params = {
@@ -37,6 +38,7 @@ describe("#Add Items", function() {
37
38
} ) ;
38
39
39
40
describe ( "#Update Items" , function ( ) {
41
+ this . timeout ( 15000 ) ;
40
42
it ( "should update the items" , function ( done ) {
41
43
var params = {
42
44
TableName :"MyMovie" ,
@@ -65,6 +67,7 @@ describe("#Update Items", function(){
65
67
} ) ;
66
68
67
69
describe ( "#Delete Items" , function ( ) {
70
+ this . timeout ( 15000 ) ;
68
71
it ( "should delete the items" , function ( done ) {
69
72
var params = {
70
73
TableName :"Movies10" ,
@@ -89,6 +92,7 @@ describe("#Delete Items", function(){
89
92
} ) ;
90
93
91
94
describe ( "#Retrieving from database" , function ( ) {
95
+ this . timeout ( 15000 ) ;
92
96
var params = {
93
97
TableName : "Movies10" ,
94
98
KeyConditionExpression : "#yr = :yyyy" ,
@@ -101,6 +105,7 @@ describe("#Retrieving from database",function(){
101
105
} ;
102
106
103
107
it ( "Getting data from the table" , function ( done ) {
108
+ this . timeout ( 15000 ) ;
104
109
dbClient . query ( params , function ( err , data ) {
105
110
if ( err ) {
106
111
should . exist ( err ) ;
0 commit comments