Skip to content

Commit

Permalink
fix(core-blockchain): remove CORE_SKIP_BLOCKCHAIN flag (#4400)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastijankuzner authored Jul 12, 2021
1 parent 1095258 commit 14d162d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
18 changes: 0 additions & 18 deletions __tests__/unit/core-blockchain/service-provider.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,24 +65,6 @@ describe("ServiceProvider", () => {
});
});

describe("bootWhen", () => {
it("should return false when process.env.CORE_SKIP_BLOCKCHAIN", async () => {
process.env.CORE_SKIP_BLOCKCHAIN = "true";

const bootWhenResult = await serviceProvider.bootWhen();

expect(bootWhenResult).toBeFalse();
});

it("should return true when !process.env.CORE_SKIP_BLOCKCHAIN", async () => {
delete process.env.CORE_SKIP_BLOCKCHAIN;

const bootWhenResult = await serviceProvider.bootWhen();

expect(bootWhenResult).toBeTrue();
});
});

describe("required", () => {
it("should return true", async () => {
const required = await serviceProvider.required();
Expand Down
5 changes: 0 additions & 5 deletions packages/core-blockchain/src/service-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ export class ServiceProvider extends Providers.ServiceProvider {
await this.app.get<Contracts.Blockchain.Blockchain>(Container.Identifiers.BlockchainService).dispose();
}

public async bootWhen(): Promise<boolean> {
// todo: remove this; the code shouldn't know that a test suite exists
return !process.env.CORE_SKIP_BLOCKCHAIN;
}

public async required(): Promise<boolean> {
return true;
}
Expand Down

0 comments on commit 14d162d

Please sign in to comment.