{"action":"opened","issue":{"url":"https://api.github.com/repos/strongloop/loopback/issues/1975","labels_url":"https://api.github.com/repos/strongloop/loopback/issues/1975/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback/issues/1975/comments","events_url":"https://api.github.com/repos/strongloop/loopback/issues/1975/events","html_url":"https://github.com/strongloop/loopback/issues/1975","id":127408093,"number":1975,"title":"beforeRemote method called only in first test","user":{"login":"IgorDavy","id":15109582,"avatar_url":"https://avatars.githubusercontent.com/u/15109582?v=3","gravatar_id":"","url":"https://api.github.com/users/IgorDavy","html_url":"https://github.com/IgorDavy","followers_url":"https://api.github.com/users/IgorDavy/followers","following_url":"https://api.github.com/users/IgorDavy/following{/other_user}","gists_url":"https://api.github.com/users/IgorDavy/gists{/gist_id}","starred_url":"https://api.github.com/users/IgorDavy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IgorDavy/subscriptions","organizations_url":"https://api.github.com/users/IgorDavy/orgs","repos_url":"https://api.github.com/users/IgorDavy/repos","events_url":"https://api.github.com/users/IgorDavy/events{/privacy}","received_events_url":"https://api.github.com/users/IgorDavy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-19T09:55:12Z","updated_at":"2016-01-19T09:55:12Z","closed_at":null,"body":"Loopback allow to use method beforeRemote, which is called before every http request for the model.\r\n\r\nTo test my http requests, I use supertest module. When I launch tests with mocha -w (relaunch tests when files change), it works only the first time, because beforeRemote is called only the first time.\r\n\r\nIs there an issue with beforeRemote method ?"}}