Skip to content

Commit

Permalink
Use client.destroy() instead of client._destroy()
Browse files Browse the repository at this point in the history
  • Loading branch information
Jashepp committed Jun 16, 2017
1 parent 13a1472 commit 001cc6b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests/1-require-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,9 @@ describe("Main: require-worker",()=>{

it("have promise action called after destroy, and reject with destroy error",(done)=>{
try{
client._destroy();
client.destroy();
}catch(err){
done("client._destroy() errored when it should not have: "+err);
done("client.destroy() errored when it should not have: "+err);
}
var promise;
try{
Expand Down Expand Up @@ -752,7 +752,7 @@ describe("Main: require-worker",()=>{
describe("destroy clients and processes",()=>{

it("destroy existing clients",(done)=>{
for(var [key,client] of requireWorker.coreClient.clientsMap) client._destroy();
for(var [key,client] of requireWorker.coreClient.clientsMap) client.destroy();
done();
});

Expand Down
2 changes: 1 addition & 1 deletion tests/2-data-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ describe("Require-Worker Data Types",()=>{
});

after("destroy client",()=>{
client._destroy();
client.destroy();
});

});

0 comments on commit 001cc6b

Please sign in to comment.