@@ -1218,7 +1218,7 @@ payment_shop_limit_success(C) ->
12181218 #domain_TurnoverLimit{
12191219 id = ?SHOPLIMIT_ID,
12201220 upper_boundary = ?LIMIT_UPPER_BOUNDARY,
1221- domain_revision = dmt_client:get_latest_version ()
1221+ domain_revision = hg_domain:head ()
12221222 }
12231223 ],
12241224 ShopID = hg_ct_helper:create_shop(PartyID, ?cat(1), <<"RUB">>, ?tmpl(1), ?pinst(1), TurnoverLimits, PartyClient),
@@ -1239,7 +1239,7 @@ payment_shop_limit_overflow(C) ->
12391239 #domain_TurnoverLimit{
12401240 id = ?SHOPLIMIT_ID,
12411241 upper_boundary = ?LIMIT_UPPER_BOUNDARY,
1242- domain_revision = dmt_client:get_latest_version ()
1242+ domain_revision = hg_domain:head ()
12431243 }
12441244 ]),
12451245 ShopID = hg_ct_helper:create_shop(PartyID, ?cat(1), <<"RUB">>, ?tmpl(1), ?pinst(1), TurnoverLimits, PartyClient),
@@ -1262,7 +1262,7 @@ payment_shop_limit_more_overflow(C) ->
12621262 #domain_TurnoverLimit{
12631263 id = ?SHOPLIMIT_ID,
12641264 upper_boundary = ?LIMIT_UPPER_BOUNDARY,
1265- domain_revision = dmt_client:get_latest_version ()
1265+ domain_revision = hg_domain:head ()
12661266 }
12671267 ]),
12681268 ShopID = hg_ct_helper:create_shop(PartyID, ?cat(1), <<"RUB">>, ?tmpl(1), ?pinst(1), TurnoverLimits, PartyClient),
@@ -6530,7 +6530,8 @@ cascade_fixture(Revision, C) ->
65306530init_route_cascading_group(C1) ->
65316531 PartyID = cfg(party_id, C1),
65326532 PartyClient = cfg(party_client, C1),
6533- _ = override_domain_fixture(fun cascade_fixture_pre_shop_create/2, undefined, C1),
6533+ Revision = hg_domain:head(),
6534+ _ = hg_domain:upsert(cascade_fixture_pre_shop_create(Revision, C1)),
65346535 C2 = [
65356536 {
65366537 {shop_id, ?PAYMENT_CASCADE_SUCCESS_ID},
@@ -6616,7 +6617,8 @@ init_route_cascading_group(C1) ->
66166617 }
66176618 | C1
66186619 ],
6619- override_domain_fixture(fun cascade_fixture/2, undefined, C2).
6620+ _ = hg_domain:upsert(cascade_fixture(Revision, C2)),
6621+ [{base_limits_domain_revision, Revision}|C2].
66206622
66216623init_per_cascade_case(payment_cascade_success, C) ->
66226624 ShopID = cfg({shop_id, ?PAYMENT_CASCADE_SUCCESS_ID}, C),
@@ -9960,7 +9962,7 @@ construct_domain_fixture() ->
99609962 #domain_TurnoverLimit{
99619963 id = ?LIMIT_ID,
99629964 upper_boundary = ?LIMIT_UPPER_BOUNDARY,
9963- domain_revision = dmt_client:get_latest_version ()
9965+ domain_revision = hg_domain:head ()
99649966 }
99659967 ]}
99669968 }
@@ -10013,7 +10015,7 @@ construct_domain_fixture() ->
1001310015 #domain_TurnoverLimit{
1001410016 id = ?LIMIT_ID2,
1001510017 upper_boundary = ?LIMIT_UPPER_BOUNDARY,
10016- domain_revision = dmt_client:get_latest_version ()
10018+ domain_revision = hg_domain:head ()
1001710019 }
1001810020 ]}
1001910021 }
@@ -10058,7 +10060,7 @@ construct_domain_fixture() ->
1005810060 #domain_TurnoverLimit{
1005910061 id = ?LIMIT_ID3,
1006010062 upper_boundary = ?LIMIT_UPPER_BOUNDARY,
10061- domain_revision = dmt_client:get_latest_version ()
10063+ domain_revision = hg_domain:head ()
1006210064 }
1006310065 ]}
1006410066 }
0 commit comments