@@ -19,7 +19,7 @@ import {
1919 PREVENT_CLOSE_ACCOUNTS ,
2020 SHOULD_EXECUTE_MULTIPLE_EPOCH_FINALIZATIONS ,
2121 PREVENT_UNSTAKE ,
22- TEST_WITH_RELAY ,
22+ TEST_WITH_INFERENCE_BACKEND ,
2323} from "@tests/lib/const" ;
2424import type {
2525 ConstructMerkleTreeInput ,
@@ -74,7 +74,7 @@ async function getRewardClaimInputs({
7474 epoch,
7575 trpc,
7676} : GetRewardClaimInputsInput ) : Promise < GetRewardClaimInputsOutput | null > {
77- if ( TEST_WITH_RELAY ) {
77+ if ( TEST_WITH_INFERENCE_BACKEND ) {
7878 debug (
7979 "- End-to-end test flow is enabled, fetching reward claim eligibility from Relay..."
8080 ) ;
@@ -260,7 +260,7 @@ async function handleAccrueRewardForEpochs({
260260 } )
261261 . rpc ( ) ;
262262
263- if ( TEST_WITH_RELAY ) {
263+ if ( TEST_WITH_INFERENCE_BACKEND ) {
264264 await trpc . insertAndProcessTransactionBySignature ( signature ) ;
265265 }
266266
@@ -309,7 +309,7 @@ async function handleAccrueRewardForEpochs({
309309 )
310310 . filter ( ( x ) => x != null ) ;
311311
312- const totalClaimedRewardsForPool = TEST_WITH_RELAY
312+ const totalClaimedRewardsForPool = TEST_WITH_INFERENCE_BACKEND
313313 ? rewardClaimsForPool . reduce (
314314 ( acc , curr ) => acc . add ( curr ) ,
315315 new anchor . BN ( 0 )
@@ -422,7 +422,7 @@ describe("multi-epoch lifecycle tests", () => {
422422 const trpc = new TrpcHttpClient ( ) ;
423423
424424 const handleEpochFinalization = async ( epoch : number , counter : number ) => {
425- if ( TEST_WITH_RELAY ) {
425+ if ( TEST_WITH_INFERENCE_BACKEND ) {
426426 debug (
427427 `- End-to-end test flow is enabled, submitting epoch finalization request for epoch ${ epoch } ...`
428428 ) ;
@@ -815,7 +815,7 @@ describe("multi-epoch lifecycle tests", () => {
815815 program = setup . sdk . program ;
816816 connection = program . provider . connection ;
817817
818- if ( TEST_WITH_RELAY ) {
818+ if ( TEST_WITH_INFERENCE_BACKEND ) {
819819 await trpc . login ( ) ;
820820 }
821821 } ) ;
@@ -2216,7 +2216,7 @@ describe("multi-epoch lifecycle tests", () => {
22162216 } ) ;
22172217
22182218 it ( "Final state validation check" , async ( ) => {
2219- if ( ! TEST_WITH_RELAY ) {
2219+ if ( ! TEST_WITH_INFERENCE_BACKEND ) {
22202220 debug (
22212221 "End-to-end test flow is disabled, skipping final state validation"
22222222 ) ;
@@ -2236,7 +2236,7 @@ describe("multi-epoch lifecycle tests", () => {
22362236 } ) ;
22372237
22382238 it ( "Verify total claimed amounts match total distributed amounts" , ( ) => {
2239- if ( TEST_WITH_RELAY ) {
2239+ if ( TEST_WITH_INFERENCE_BACKEND ) {
22402240 debug ( "Testing with Relay is enabled, skipping final accounting checks" ) ;
22412241 return ;
22422242 }
0 commit comments