File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -155,7 +155,8 @@ def test_delete():
155155 close (db )
156156
157157
158- # Row not exists case so entry created and default filled in
158+ # TODO: create db _then swap_ then create rows then check original invariants
159+ # Col? not exists case so entry created and default filled in
159160def test_merging_on_defaults ():
160161 def create_db1 ():
161162 db1 = connect (":memory:" )
@@ -176,6 +177,10 @@ def create_db2():
176177 # test merging from thing with records (db2) to thing without records for default cols (db1)
177178 db1 = create_db1 ()
178179 db2 = create_db2 ()
180+ if get_site_id (db1 ) > get_site_id (db2 ):
181+ temp = db1
182+ db1 = db2
183+ db2 = temp
179184
180185 sync_left_to_right (db2 , db1 , 0 )
181186 # db1 has changes from db2
@@ -190,6 +195,10 @@ def create_db2():
190195
191196 db1 = create_db1 ()
192197 db2 = create_db2 ()
198+ if get_site_id (db1 ) > get_site_id (db2 ):
199+ temp = db1
200+ db1 = db2
201+ db2 = temp
193202
194203 sync_left_to_right (db1 , db2 , 0 )
195204
You can’t perform that action at this time.
0 commit comments