vxx2 / vlib / v / tests / interfaces / redis_connection_poolable_test.v
13 lines · 11 sloc · 242 bytes · 4ecf4a20779f1c32651eaa9ec196202156369353
Raw
1import db.redis
2import pool
3
4fn create_conn() !&pool.ConnectionPoolable {
5 mut redis_client := redis.DB{}
6 conn := &redis_client
7 return conn
8}
9
10fn test_redis_db_implements_connection_poolable() {
11 mut conn := create_conn()!
12 conn.reset()!
13}
14