diff --git a/bosh_aws_cpi/spec/unit/resource_wait_spec.rb b/bosh_aws_cpi/spec/unit/resource_wait_spec.rb
index <HASH>..<HASH> 100644
--- a/bosh_aws_cpi/spec/unit/resource_wait_spec.rb
+++ b/bosh_aws_cpi/spec/unit/resource_wait_spec.rb
@@ -4,8 +4,7 @@ describe Bosh::AwsCloud::ResourceWait do
 
   before do
     Bosh::Common.stub(:sleep)
-    Bosh::Clouds::Config.stub(:task_checkpoint)
-    described_class.stub(:logger)
+    Bosh::Clouds::Config.stub(task_checkpoint: nil, logger: double("logger").as_null_object)
   end
 
   describe '#for_instance' do
[aws_cpi] fix resource_wait_spec