Skip to content

Commit 52b925f

Browse files
Fix random test failure of test_create_resets_cached_counters
- In earlier commit, I removed setting id manually for readers fixtures but that did not fix the randomly failing test_create_resets_cached_counters from has_many_associations tests. - Because the problem was with the `person_id` of the readers. As it is set to 1 in fixtures, if a post gets created with id 1 then that post automatically has 2 readers. - Fixed by removing the person_id.
1 parent 74fa3ea commit 52b925f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
michael_welcome:
22
post_id: 1
3-
person_id: 1
3+
person: michael
44
first_post_id: 2
55

66
michael_authorless:
77
post_id: 3
8-
person_id: 1
8+
person: michael
99
first_post_id: 3

0 commit comments

Comments
 (0)