Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
Cisphyx committed May 31, 2024
1 parent 61d6d54 commit a2163c2
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions synapse/tests/test_lib_stormtypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -6704,11 +6704,10 @@ async def test_view_quorum(self):
self.nn(await core.callStorm('return($lib.view.get().setMergeRequest())', opts=opts))
self.eq([fork.iden], await core.callStorm(merging))

# confirm that you may not re-parent to a view with a merge request
# confirm that you may re-parent to a view with a merge request
layr = await core.addLayer()
vdef = await core.addView({'layers': (layr['iden'],)})
with self.raises(s_exc.BadState):
await core.getView(vdef['iden']).setViewInfo('parent', fork.iden)
await core.getView(vdef['iden']).setViewInfo('parent', fork.iden)

opts = {'view': fork.iden, 'user': visi.iden}
self.nn(await core.callStorm('return($lib.view.get().setMergeVote(approved=(false)))', opts=opts))
Expand Down Expand Up @@ -6790,9 +6789,7 @@ async def test_view_quorum(self):
await core.callStorm('return($lib.view.get().setMergeRequest())', opts=opts)

core.getView().layers[0].readonly = False

with self.raises(s_exc.BadState):
await core.callStorm('return($lib.view.get().fork())', opts=opts)
await core.callStorm('return($lib.view.get().fork())', opts=opts)

# setup a new merge and make a mirror...
forkdef = await core.getView().fork()
Expand Down

0 comments on commit a2163c2

Please sign in to comment.