mirror of
https://github.com/hibiken/asynq.git
synced 2025-09-19 13:21:58 +08:00
Close redis client after each test run
This commit is contained in:
@@ -16,6 +16,7 @@ import (
|
||||
|
||||
func TestSubscriber(t *testing.T) {
|
||||
r := setup(t)
|
||||
defer r.Close()
|
||||
rdbClient := rdb.NewRDB(r)
|
||||
|
||||
tests := []struct {
|
||||
@@ -76,6 +77,7 @@ func TestSubscriberWithRedisDown(t *testing.T) {
|
||||
}
|
||||
}()
|
||||
r := rdb.NewRDB(setup(t))
|
||||
defer r.Close()
|
||||
testBroker := testbroker.NewTestBroker(r)
|
||||
|
||||
cancelations := base.NewCancelations()
|
||||
|
Reference in New Issue
Block a user