diff --git a/tests/integration/__init__.py b/tests/integration/__init__.py
index <HASH>..<HASH> 100644
--- a/tests/integration/__init__.py
+++ b/tests/integration/__init__.py
@@ -33,7 +33,7 @@ def recursive_delete(client, bucket_name):
             client.delete_objects(Bucket=bucket_name, Delete={'Objects': keys})
     for _ in range(5):
         try:
-            client.delete_bucket(Bucket=bucket)
+            client.delete_bucket(Bucket=bucket_name)
             break
         except client.exceptions.NoSuchBucket:
             exists_waiter.wait(Bucket=bucket_name)
Fix NameError in bucket cleanup