{"action":"created","issue":{"url":"https://api.github.com/repos/lanetix/node-dipswitch/issues/3","labels_url":"https://api.github.com/repos/lanetix/node-dipswitch/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/lanetix/node-dipswitch/issues/3/comments","events_url":"https://api.github.com/repos/lanetix/node-dipswitch/issues/3/events","html_url":"https://github.com/lanetix/node-dipswitch/pull/3","id":96113802,"number":3,"title":"Actually run the db empty assertion before putting stuff in the db","user":{"login":"apechimp","id":510459,"avatar_url":"https://avatars.githubusercontent.com/u/510459?v=3","gravatar_id":"","url":"https://api.github.com/users/apechimp","html_url":"https://github.com/apechimp","followers_url":"https://api.github.com/users/apechimp/followers","following_url":"https://api.github.com/users/apechimp/following{/other_user}","gists_url":"https://api.github.com/users/apechimp/gists{/gist_id}","starred_url":"https://api.github.com/users/apechimp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apechimp/subscriptions","organizations_url":"https://api.github.com/users/apechimp/orgs","repos_url":"https://api.github.com/users/apechimp/repos","events_url":"https://api.github.com/users/apechimp/events{/privacy}","received_events_url":"https://api.github.com/users/apechimp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-20T17:18:26Z","updated_at":"2015-07-20T17:18:31Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/lanetix/node-dipswitch/pulls/3","html_url":"https://github.com/lanetix/node-dipswitch/pull/3","diff_url":"https://github.com/lanetix/node-dipswitch/pull/3.diff","patch_url":"https://github.com/lanetix/node-dipswitch/pull/3.patch"},"body":"This fixes a bug in the dipswitch tests which only became apparent after implementing the postgres store, although it was intermittent with the redis store. When the database was emptied before running tests, it would happen in parallel with the test, so there was a race condition against the delete and the writes, this removes that race condition."},"comment":{"url":"https://api.github.com/repos/lanetix/node-dipswitch/issues/comments/122957317","html_url":"https://github.com/lanetix/node-dipswitch/pull/3#issuecomment-122957317","issue_url":"https://api.github.com/repos/lanetix/node-dipswitch/issues/3","id":122957317,"user":{"login":"apechimp","id":510459,"avatar_url":"https://avatars.githubusercontent.com/u/510459?v=3","gravatar_id":"","url":"https://api.github.com/users/apechimp","html_url":"https://github.com/apechimp","followers_url":"https://api.github.com/users/apechimp/followers","following_url":"https://api.github.com/users/apechimp/following{/other_user}","gists_url":"https://api.github.com/users/apechimp/gists{/gist_id}","starred_url":"https://api.github.com/users/apechimp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apechimp/subscriptions","organizations_url":"https://api.github.com/users/apechimp/orgs","repos_url":"https://api.github.com/users/apechimp/repos","events_url":"https://api.github.com/users/apechimp/events{/privacy}","received_events_url":"https://api.github.com/users/apechimp/received_events","type":"User","site_admin":false},"created_at":"2015-07-20T17:18:31Z","updated_at":"2015-07-20T17:18:31Z","body":"CR @lanetix/engineers "}}