Merge pull request #1228 from cosmos/fix-slow-simapp-gates

Fix slowSimappEnabled implementation
This commit is contained in:
Simon Warta 2022-08-03 18:42:42 +02:00 committed by GitHub
commit 93f2c2c086
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,17 +45,21 @@ export function pendingWithoutSimapp42(): void {
export function pendingWithoutSimapp(): void {
if (!simappEnabled()) {
return pending("Set SIMAPP42_ENABLED or SIMAPP44_ENABLED to enable Simapp based tests");
return pending("Set SIMAPP{42,44,46}_ENABLED to enable Simapp based tests");
}
}
export function slowSimappEnabled(): boolean {
return !!process.env.SLOW_SIMAPP42_ENABLED || !!process.env.SLOW_SIMAPP44_ENABLED;
return (
!!process.env.SLOW_SIMAPP42_ENABLED ||
!!process.env.SLOW_SIMAPP44_ENABLED ||
!!process.env.SLOW_SIMAPP46_ENABLED
);
}
export function pendingWithoutSlowSimapp(): void {
if (!slowSimappEnabled()) {
return pending("Set SLOW_SIMAPP42_ENABLED or SLOW_SIMAPP44_ENABLED to enable slow Simapp based tests");
return pending("Set SLOW_SIMAPP{42,44,46}_ENABLED to enable slow Simapp based tests");
}
}