Skip to content

Commit

Permalink
Request timeout option default to 15 instead of null
Browse files Browse the repository at this point in the history
  • Loading branch information
soullivaneuh committed May 18, 2015
1 parent 38d0cc6 commit 7ed4193
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function getConfigTreeBuilder()
->info('If needed you can specify a proxy that is used when connecting to HipChat.')
->end()
->scalarNode('request_timeout')
->defaultNull()
->defaultValue(15)
->info('In seconds. To change the default timeout of a HipChat API request.')
->end()
->end();
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ mannew_hipchat:
auth_token: YOUR_HIPCHAT_AUTH_TOKEN_HERE
verify_ssl: true # optional
proxy_address: ~ # optional
request_timeout: ~ # in seconds, optional
request_timeout: 15 # in seconds, optional
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion Tests/DependencyInjection/MannewHipchatExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public function testLoadConfigWithoutRequestTimeoutOption()
$container = $this->getEmptyTestContainer();
$this->loadConfigIntoContainer($config, $container);

$this->assertContainerParameterEquals($container, 'request_timeout', null);
$this->assertContainerParameterEquals($container, 'request_timeout', 15);
}

/**
Expand Down

0 comments on commit 7ed4193

Please sign in to comment.