You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many tests currently use repetitive logic to skip tests with Assert.Skip. To improve maintainability and reduce redundancy, a utility method SkipUtils.ExecuteWithSkipAsync should be introduced and applied across the codebase.
publicasyncTask<int>GetHeadlessActionPointData(longblockIndex,AddressavatarAddress){varstateResponse=awaitSkipUtils.ExecuteWithSkipAsync(async()=>awaitheadlessClient.GetState.ExecuteAsync(Addresses.ActionPoint.ToString(),avatarAddress.ToString(),blockIndex),"Headless client is unresponsive; skipping test.");varresult=CodecUtil.DecodeState(stateResponse.Data.State);if(resultis not Integervalue)thrownewException();returnvalue;}
Refactor all relevant tests to use this utility method.
The text was updated successfully, but these errors were encountered:
Many tests currently use repetitive logic to skip tests with
Assert.Skip
. To improve maintainability and reduce redundancy, a utility methodSkipUtils.ExecuteWithSkipAsync
should be introduced and applied across the codebase.Implementation Example:
Application Example:
Refactor all relevant tests to use this utility method.
The text was updated successfully, but these errors were encountered: