diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-10-04 16:15:18 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-10-04 16:15:18 +0100 |
commit | c358aa2beeb4637d190a91def6c7a4b23d162b51 (patch) | |
tree | 6019e1e9c362dd71dc6731e200ae7f6fc6fb20df /t/photostorage | |
parent | 96bb52d449517b1018841e56e6008dedd03e6f3b (diff) | |
parent | a123e7da22e9dbf8d98d15287526d070ab15bf15 (diff) |
Merge branch 'test-warnings'
Diffstat (limited to 't/photostorage')
-rw-r--r-- | t/photostorage/s3.t | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/t/photostorage/s3.t b/t/photostorage/s3.t index fa989374f..ec0fadc15 100644 --- a/t/photostorage/s3.t +++ b/t/photostorage/s3.t @@ -2,6 +2,7 @@ use FixMyStreet::Test; use Test::MockModule; +use Test::Warn; use Path::Tiny 'path'; use Net::Amazon::S3::Client::Bucket; @@ -112,7 +113,9 @@ FixMyStreet::override_config { $create_bucket_called = 1; }); - ok !$s3->init(), "PhotoStorage::S3::init failed"; + warning_like { + $s3->init(); + } qr/S3 bucket 'fms-test-photos' doesn't exist and CREATE_BUCKET is not set./, 'PhotoStorage::S3::init failed'; ok $buckets_called, "Client::buckets called"; ok !$create_bucket_called, "Client::create_bucket not called"; }; |