Skip to content

Commit

Permalink
Fix exception class, message in unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
mwjones-aws committed Sep 16, 2022
1 parent af5b989 commit 83a1f45
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/instance_agent/file_credentials_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require 'test_helper'
require 'aws-sdk-core'

class FileCredentialsTest < InstanceAgentTestCase
context 'With the file credentials' do
Expand Down Expand Up @@ -52,7 +53,7 @@ class FileCredentialsTest < InstanceAgentTestCase
end

should 'raise error when credential file is missing' do
assert_raised_with_message("Failed to load credentials from path #{credentials_path}", RuntimeError) do
assert_raised_with_message("Profile `default' not found in #{credentials_path}", Aws::Errors::NoSuchProfileError) do
InstanceAgent::FileCredentials.new(credentials_path)
end
end
Expand Down

0 comments on commit 83a1f45

Please sign in to comment.