@@ -12,7 +12,7 @@ var DEVICE_ID = "1234567890";
1212
1313var compareAgainstGranuralData = function ( options , data , done ) {
1414 request
15- . get ( '/o/aggregate?api_key=' + API_KEY_ADMIN + '&app_id=' + APP_ID + '&query=' + JSON . stringify ( options . query ) + '&period=' + ( options . period || "30ddays" ) )
15+ . get ( '/o/aggregate?api_key=' + API_KEY_ADMIN + '&no_cache=true& app_id=' + APP_ID + '&query=' + JSON . stringify ( options . query ) + '&period=' + ( options . period || "30ddays" ) )
1616 . expect ( 200 )
1717 . end ( function ( err , res ) {
1818 if ( err ) {
@@ -185,7 +185,7 @@ describe('Writing app metrics', function() {
185185 }
186186 var ob = JSON . parse ( res . text ) ;
187187 ob . should . have . property ( 'result' , 'Success' ) ;
188- setTimeout ( done , 1000 * testUtils . testScalingFactor ) ;
188+ setTimeout ( done , 1000 * testUtils . testScalingFactor + 2000 ) ;
189189 } ) ;
190190 } ) ;
191191 } ) ;
@@ -196,6 +196,7 @@ describe('Writing app metrics', function() {
196196 . get ( '/o?api_key=' + API_KEY_ADMIN + '&app_id=' + APP_ID + '&method=device_details' )
197197 . expect ( 200 )
198198 . end ( function ( err , res ) {
199+ console . log ( JSON . stringify ( res ) ) ;
199200 testUtils . validateMetrics ( err , res , done , { meta : { "os" : [ "Android" ] , "os_versions" : [ "a4:4" ] } , Android : { "n" : 2 , "t" : 2 , "u" : 2 } , "a4:4" : { "n" : 1 , "t" : 1 , "u" : 1 } } ) ;
200201 } ) ;
201202 } ) ;
@@ -221,7 +222,7 @@ describe('Writing app metrics', function() {
221222 }
222223 var ob = JSON . parse ( res . text ) ;
223224 ob . should . have . property ( 'result' , 'Success' ) ;
224- setTimeout ( done , 1000 * testUtils . testScalingFactor ) ;
225+ setTimeout ( done , 1000 * testUtils . testScalingFactor + 2000 ) ;
225226 } ) ;
226227 } ) ;
227228 } ) ;
@@ -270,7 +271,7 @@ describe('Writing app metrics', function() {
270271 }
271272 var ob = JSON . parse ( res . text ) ;
272273 ob . should . have . property ( 'result' , 'Success' ) ;
273- setTimeout ( done , 1000 * testUtils . testScalingFactor ) ;
274+ setTimeout ( done , 1000 * testUtils . testScalingFactor + 2000 ) ;
274275 } ) ;
275276 } ) ;
276277 } ) ;
@@ -359,7 +360,7 @@ describe('Writing app metrics', function() {
359360 }
360361 var ob = JSON . parse ( res . text ) ;
361362 ob . should . have . property ( 'result' , 'Success' ) ;
362- setTimeout ( done , 1000 * testUtils . testScalingFactor ) ;
363+ setTimeout ( done , 1000 * testUtils . testScalingFactor + 2000 ) ;
363364 } ) ;
364365 } ) ;
365366 } ) ;
@@ -391,7 +392,7 @@ describe('Writing app metrics', function() {
391392 }
392393 var ob = JSON . parse ( res . text ) ;
393394 ob . should . have . property ( 'result' , 'Success' ) ;
394- setTimeout ( done , 1000 * testUtils . testScalingFactor ) ;
395+ setTimeout ( done , 1000 * testUtils . testScalingFactor + 2000 ) ;
395396 } ) ;
396397 } ) ;
397398 } ) ;
@@ -478,7 +479,7 @@ describe('Writing app metrics', function() {
478479 }
479480 var ob = JSON . parse ( res . text ) ;
480481 ob . should . have . property ( 'result' , 'Success' ) ;
481- setTimeout ( done , 1000 * testUtils . testScalingFactor ) ;
482+ setTimeout ( done , 1000 * testUtils . testScalingFactor + 2000 ) ;
482483 } ) ;
483484 } ) ;
484485 } ) ;
0 commit comments