Skip to content

Commit

Permalink
add testcase for issue_323
Browse files Browse the repository at this point in the history
  • Loading branch information
idning committed Apr 28, 2015
1 parent 8ebc32b commit 786c6d4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions tests/test_redis/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,5 +112,16 @@ def get_stat(name):
assert(get_stat('requests') == 22)
assert(get_stat('responses') == 22)

def test_issue_323():
# do on redis
r = all_redis[0]
c = redis.Redis(r.host(), r.port())
assert([1, 'OK'] == c.eval("return {1, redis.call('set', 'x', '1')}", 1, 'tmp'))

# do on twemproxy
c = getconn()
assert([1, 'OK'] == c.eval("return {1, redis.call('set', 'x', '1')}", 1, 'tmp'))

def setup_and_wait():
time.sleep(60*60)

2 changes: 1 addition & 1 deletion travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fi
#build twemproxy
CFLAGS="-ggdb3 -O0" autoreconf -fvi && ./configure --enable-debug=log && make

cp src/nutcracker tests/_binaries/
ln -s `pwd`/src/nutcracker tests/_binaries/
cp `which redis-server` tests/_binaries/
cp `which redis-cli` tests/_binaries/
cp `which memcached` tests/_binaries/
Expand Down

0 comments on commit 786c6d4

Please sign in to comment.