diff --git a/qa/spec/runtime/key/ecdsa_spec.rb b/qa/spec/runtime/key/ecdsa_spec.rb
index 55a5c5e5c1bbca6d4e21731298cddfd81506f3e4..8951e82b9bbe7bf4830d723a5a910ffff66b7de6 100644
--- a/qa/spec/runtime/key/ecdsa_spec.rb
+++ b/qa/spec/runtime/key/ecdsa_spec.rb
@@ -11,7 +11,8 @@ describe QA::Runtime::Key::ECDSA do
 
   describe '#new' do
     it 'does not support arbitrary bits' do
-      expect { described_class.new(123) }.to raise_error(RuntimeError)
+      expect { described_class.new(123) }
+        .to raise_error(QA::Service::Shellout::CommandError)
     end
   end
 end