Skip to content

Commit 4b4aab1

Browse files
authored
Updated expected error message in file_credentials_test
1 parent 638bfe1 commit 4b4aab1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/instance_agent/file_credentials_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class FileCredentialsTest < InstanceAgentTestCase
5353
end
5454

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

0 commit comments

Comments
 (0)