Skip to content

Commit

Permalink
fix flapper - don't try to update the user until after the profile is…
Browse files Browse the repository at this point in the history
… destroyed
  • Loading branch information
iamigo committed Aug 16, 2017
1 parent b61c3f2 commit 0eeab57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/db/model/profile/withUser.js
Expand Up @@ -57,7 +57,7 @@ describe('Profile model with users', () => {
Profile.create({ name: `${tu.namePrefix}2` })
.then((p) => {
newProfileId = p.id;
p.destroy();
return p.destroy();
})
.then(() => user.update({ profileId: newProfileId }))
.then((returnedUser) => {
Expand Down

0 comments on commit 0eeab57

Please sign in to comment.