Merge lp:~therve/storm/277095-update-cache into lp:storm
Proposed by
Thomas Herve
Status: | Merged |
---|---|
Merge reported by: | Thomas Herve |
Merged at revision: | 271 |
Proposed branch: | lp:~therve/storm/277095-update-cache |
Merge into: | lp:storm |
To merge this branch: | bzr merge lp:~therve/storm/277095-update-cache |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gustavo Niemeyer | Approve | ||
James Henstridge | Approve | ||
Review via email: mp+1200@code.launchpad.net |
To post a comment you must log in.
Looks good. You could probably simplify the test a bit: I don't think you need to overlap the two transactions to trigger the bug. The following fails without your changes and passes with your changes, even on sqlite:
store = self.create_store()
self.assertEqu als(foo2. title, u"Title 30")
store. commit( )
foo2 = store.get(Foo, 10)
foo1 = self.store.get(Foo, 10)
self.store. commit( )
foo1.title = u"Title 40"
foo2.title = u"Title 30"
store. commit( )
self.assertEqu als(foo2. title, u"Title 30")
Not having to disable the test on sqlite seems worth doing.