Skip to content

Commit

Permalink
test: fixes timeouts for unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cmurczek-it committed Dec 27, 2018
1 parent d05125d commit c475614
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/verifyConditions/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ describe('@iteratec/semantic-release-docker', function() {
});

it('should use the registry from the config', function() {
this.timeout(5000);
process.env.DOCKER_REGISTRY_USER = 'username';
process.env.DOCKER_REGISTRY_PASSWORD = 'password';
(context.options.prepare![0] as DockerPluginConfig).registryUrl = 'my_private_registry';
Expand All @@ -63,6 +64,7 @@ describe('@iteratec/semantic-release-docker', function() {
});

it('should prefer the registry from the environment variable over the one from the config', function() {
this.timeout(5000);
process.env.DOCKER_REGISTRY_USER = 'username';
process.env.DOCKER_REGISTRY_PASSWORD = 'password';
process.env.DOCKER_REGISTRY_URL = 'my_other_private_registry';
Expand Down

0 comments on commit c475614

Please sign in to comment.