diff --git a/locust_plugins/mongoreader.py b/locust_plugins/mongoreader.py index ede5a88..5b5ad83 100644 --- a/locust_plugins/mongoreader.py +++ b/locust_plugins/mongoreader.py @@ -34,7 +34,7 @@ def __init__( """ self.timestamp_field = timestamp_field - if not coll: + if coll is None: self.coll: Collection = MongoClient(env["LOCUST_MONGO"])[env["LOCUST_MONGO_DATABASE"]][ env["LOCUST_MONGO_COLLECTION"] ]