diff --git a/spec/lib/gitlab/satellite/action_spec.rb b/spec/lib/gitlab/satellite/action_spec.rb
index 4e27a9a4088b75524f21a65b56dfaa3bfa4ea79f..0a93676edc3c69cc4a7c6d4553fce696b2f5650f 100644
--- a/spec/lib/gitlab/satellite/action_spec.rb
+++ b/spec/lib/gitlab/satellite/action_spec.rb
@@ -98,16 +98,16 @@ describe 'Gitlab::Satellite::Action' do
       def flocked?(&block)
         status = flock LOCK_EX|LOCK_NB
         case status
-          when false
-            return true
-          when 0
-            begin
-              block ? block.call : false
-            ensure
-              flock LOCK_UN
-            end
-          else
-            raise SystemCallError, status
+        when false
+          return true
+        when 0
+          begin
+            block ? block.call : false
+          ensure
+            flock LOCK_UN
+          end
+        else
+          raise SystemCallError, status
         end
       end
     end