@@ -244,37 +244,22 @@ describe("#container", function() {
244244 container . changes ( handler ) ;
245245 } ) ;
246246 } ) ;
247-
247+
248248 describe ( "#logs" , function ( ) {
249-
250- it ( "should get the logs for a container" , function ( done ) {
251- this . timeout ( 30000 ) ;
252- var container = docker . getContainer ( testContainer ) ;
253- var logs_opts = { follow : false , stdout : true , stderr : true , timestamps : true } ;
254-
255- function handler ( err , logs ) {
256- expect ( err ) . to . be . null ;
257- expect ( logs ) . to . be . a ( 'string' ) ;
258- done ( ) ;
259- }
260-
261- container . logs ( logs_opts , handler ) ;
262-
263- } ) ;
264-
249+
265250 it ( "should get the logs for a container as a stream" , function ( done ) {
266251 this . timeout ( 30000 ) ;
267252 var container = docker . getContainer ( testContainer ) ;
268253 var logs_opts = { follow : true , stdout : true , stderr : true , timestamps : true } ;
269-
254+
270255 function handler ( err , stream ) {
271256 expect ( err ) . to . be . null ;
272257 expect ( stream . pipe ) . to . be . ok ;
273258 done ( ) ;
274259 }
275-
260+
276261 container . logs ( logs_opts , handler ) ;
277-
262+
278263 } ) ;
279264 } ) ;
280265
@@ -319,7 +304,7 @@ describe("#non-responsive container", function() {
319304 var container = docker . getContainer ( testContainer ) ;
320305
321306 function handler ( err , data ) {
322- expect ( err ) . to . be . null ;
307+ expect ( err ) . not . to . be . null ;
323308 done ( ) ;
324309 }
325310
0 commit comments