@@ -315,36 +315,38 @@ describe('Logging', function() {
315315 } ) ;
316316
317317 it ( 'should write multiple entries to a log' , function ( done ) {
318- log . write ( logEntries , options , function ( err ) {
319- assert . ifError ( err ) ;
318+ logEntries . forEach ( function ( entry ) {
319+ log . write ( entry , options , function ( err ) {
320+ assert . ifError ( err ) ;
321+ } ) ;
322+ } ) ;
320323
321- setTimeout ( function ( ) {
322- log . getEntries ( {
323- pageSize : logEntries . length
324- } , function ( err , entries ) {
325- assert . ifError ( err ) ;
324+ setTimeout ( function ( ) {
325+ log . getEntries ( {
326+ pageSize : logEntries . length
327+ } , function ( err , entries ) {
328+ assert . ifError ( err ) ;
326329
327- assert . deepEqual ( entries . map ( prop ( 'data' ) ) . reverse ( ) , [
328- 'log entry 1' ,
329- {
330+ assert . deepEqual ( entries . map ( prop ( 'data' ) ) . reverse ( ) , [
331+ 'log entry 1' ,
332+ {
333+ delegate : 'my_username'
334+ } ,
335+ {
336+ nonValue : null ,
337+ boolValue : true ,
338+ arrayValue : [ 1 , 2 , 3 ]
339+ } ,
340+ {
341+ nested : {
330342 delegate : 'my_username'
331- } ,
332- {
333- nonValue : null ,
334- boolValue : true ,
335- arrayValue : [ 1 , 2 , 3 ]
336- } ,
337- {
338- nested : {
339- delegate : 'my_username'
340- }
341343 }
342- ] ) ;
344+ }
345+ ] ) ;
343346
344- done ( ) ;
345- } ) ;
346- } , WRITE_CONSISTENCY_DELAY_MS ) ;
347- } ) ;
347+ done ( ) ;
348+ } ) ;
349+ } , WRITE_CONSISTENCY_DELAY_MS ) ;
348350 } ) ;
349351
350352 it ( 'should write an entry with primitive values' , function ( done ) {
0 commit comments