Skip to content

Commit

Permalink
workaround for mocha tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ppisljar committed Nov 16, 2018
1 parent 09ab74d commit 102ab05
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/kbn-interpreter/server/server_registries.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ export const getServerRegistries = () => {
};

export const populateServerRegistries = types => {
if (called) throw new Error('function should only be called once per process');
if (called) {
console.log('function should only be called once per process');
return populatePromise;
}
called = true;
if (!types || !types.length) throw new Error('types is required');

Expand Down

0 comments on commit 102ab05

Please sign in to comment.