From bd2ff89bf127315f398f49c734cdb25eaf96bfdf Mon Sep 17 00:00:00 2001 From: Seamus Cawley Date: Mon, 13 Mar 2017 13:52:57 +0000 Subject: [PATCH] Ensure SQS property WaitTimeSeconds is an integer --- moto/sqs/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moto/sqs/models.py b/moto/sqs/models.py index 62b79fdc1..61093aa82 100644 --- a/moto/sqs/models.py +++ b/moto/sqs/models.py @@ -113,7 +113,7 @@ class Queue(BaseModel): self.region = region # wait_time_seconds will be set to immediate return messages - self.wait_time_seconds = wait_time_seconds or 0 + self.wait_time_seconds = int(wait_time_seconds) if wait_time_seconds else 0 self._messages = [] now = unix_time()