Skip to content

Commit

Permalink
Minor tweaks made while writing integ tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremeamia committed May 8, 2015
1 parent 5a807ae commit 93654ff
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/AwsClient.php
Expand Up @@ -276,7 +276,7 @@ public function serialize(CommandInterface $command)
$request = null;
// Return a mock response.
$command->getHandlerList()->setHandler(
function (CommandInterface $cmd, RequestInterface $req) use (&$request) {
static function (CommandInterface $cmd, RequestInterface $req) use (&$request) {
$request = $req;
return new FulfilledPromise(new Result([]));
}
Expand Down
4 changes: 1 addition & 3 deletions src/ClientResolver.php
Expand Up @@ -448,9 +448,7 @@ public static function _default_endpoint_provider()

public static function _default_signature_provider()
{
return SignatureProvider::memoize(
SignatureProvider::defaultProvider()
);
return SignatureProvider::defaultProvider();
}

public static function _default_signature_version(array &$args)
Expand Down
4 changes: 2 additions & 2 deletions tests/Integ/IntegUtils.php
Expand Up @@ -3,9 +3,9 @@

trait IntegUtils
{
private static function getSdk()
private static function getSdk(array $args = [])
{
return new \Aws\Sdk([
return new \Aws\Sdk($args + [
'region' => 'us-east-1',
'profile' => 'integ',
'version' => 'latest',
Expand Down

0 comments on commit 93654ff

Please sign in to comment.