Skip to content

Commit

Permalink
# fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Terencesun committed Apr 13, 2019
1 parent f5f0cca commit ffd12df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,9 @@ class nayo {
// should create new address to save Object, avoiding data pollution
let _workList_temp = JSON.parse(JSON.stringify(workList));
// the way of avoiding the conflict by creating a new memory address while using 'push'
this[worker].gen_query_statement(_workList_temp);
if (process.env.nayo != "test") {
this[worker].gen_query_statement(_workList_temp);
}
let workTool = {
workList_inner: _workList_temp,
reject_inner: reject,
Expand Down

0 comments on commit ffd12df

Please sign in to comment.