Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Commit

Permalink
Add timeout to cli test
Browse files Browse the repository at this point in the history
  • Loading branch information
jhm-ciberman committed Jun 1, 2018
1 parent 803aec4 commit d3126a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/unit/cli/Cli.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
SpyOn,
TestCase,
TestFixture,
Timeout,
} from "alsatian";

import { Container, injectable } from "inversify";
Expand All @@ -30,6 +31,7 @@ export class CliFixture {
@TestCase("generate", "generate path --noOpen", false)
@TestCase("init", "init", true)
@TestCase("init", "init", false)
@Timeout(2000)
@AsyncTest()
public async cli(spyOnMethod: string, command: string, shouldFail: boolean) {
const cliFacade = new MockCliGGenerateFacade();
Expand Down

0 comments on commit d3126a4

Please sign in to comment.