Skip to content

Commit

Permalink
Format fix
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Radnic <[email protected]>
  • Loading branch information
pradnic committed Jun 2, 2021
1 parent a3b6752 commit feaa224
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/memcached/cache_impl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,9 @@ func TestNewRateLimitCacheImplFromSettingsWhenSrvCannotBeResolved(t *testing.T)
s.ExpirationJitterMaxSeconds = 300
s.MemcacheSrv = "_something._tcp.example.invalid"

assert.Panics(func() { memcached.NewRateLimitCacheImplFromSettings(s, timeSource, nil, nil, statsStore, mockstats.NewMockStatManager(statsStore)) })
assert.Panics(func() {
memcached.NewRateLimitCacheImplFromSettings(s, timeSource, nil, nil, statsStore, mockstats.NewMockStatManager(statsStore))
})
}

func TestNewRateLimitCacheImplFromSettingsWhenHostAndPortAndSrvAreBothSet(t *testing.T) {
Expand All @@ -623,7 +625,9 @@ func TestNewRateLimitCacheImplFromSettingsWhenHostAndPortAndSrvAreBothSet(t *tes
s.MemcacheSrv = "_something._tcp.example.invalid"
s.MemcacheHostPort = []string{"example.org:11211"}

assert.Panics(func() { memcached.NewRateLimitCacheImplFromSettings(s, timeSource, nil, nil, statsStore, mockstats.NewMockStatManager(statsStore)) })
assert.Panics(func() {
memcached.NewRateLimitCacheImplFromSettings(s, timeSource, nil, nil, statsStore, mockstats.NewMockStatManager(statsStore))
})
}

func getMultiResult(vals map[string]int) map[string]*memcache.Item {
Expand Down

0 comments on commit feaa224

Please sign in to comment.