Skip to content

Commit

Permalink
test: added type
Browse files Browse the repository at this point in the history
  • Loading branch information
flc1125 committed Mar 28, 2023
1 parent 6a72835 commit 9c93e3b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ func TestRediser(t *testing.T) {
assert.Panics(t, func() {
m.Connect("not-found").Get(ctx, "aaa").Val()
})

// type
assert.Equal(t, "localhost:6379", m.Connect("db1").(*redis.Client).Options().Addr)
}

func BenchmarkMap(b *testing.B) {
Expand Down

0 comments on commit 9c93e3b

Please sign in to comment.