Skip to content

Commit

Permalink
Allow a key to propagate in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
toastdriven committed Sep 6, 2020
1 parent 2e51867 commit b756449
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_redis_backend.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
import redis
import time
import unittest

from alligator.backends.redis_backend import Client as RedisClient
Expand Down Expand Up @@ -41,6 +42,7 @@ def test_push(self):

def test_pop(self):
self.backend.push("all", "hello", '{"whee": 1}')
time.sleep(1)

data = self.backend.pop("all")
self.assertEqual(data, '{"whee": 1}')
Expand Down

0 comments on commit b756449

Please sign in to comment.