now has possibility to end streaming requests
This commit is contained in:
10
test/test.ts
10
test/test.ts
@ -30,7 +30,15 @@ describe("dockersock",function(){
|
||||
testDockersock.pullImage("hosttoday/ht-docker-dbase")
|
||||
.then((dataArg)=>{
|
||||
done();
|
||||
},done);
|
||||
});
|
||||
});
|
||||
it("should return a change Objservable",function(done){
|
||||
this.timeout(10000);
|
||||
testDockersock.getChangeObservable();
|
||||
setTimeout(() => {
|
||||
testDockersock.endRequests();
|
||||
done();
|
||||
},5000);
|
||||
})
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user