mirror of
https://github.com/unmojang/drasl.git
synced 2025-09-10 07:40:00 -04:00
rate limiting: fix tests
This commit is contained in:
parent
7de5d70a9a
commit
c9c8a1ef32
@ -149,7 +149,7 @@ func TestFront(t *testing.T) {
|
|||||||
|
|
||||||
config := testConfig()
|
config := testConfig()
|
||||||
config.RateLimit = rateLimitConfig{
|
config.RateLimit = rateLimitConfig{
|
||||||
Disable: true,
|
Disable: false,
|
||||||
RequestsPerSecond: 2,
|
RequestsPerSecond: 2,
|
||||||
}
|
}
|
||||||
ts.Setup(config)
|
ts.Setup(config)
|
||||||
|
@ -128,7 +128,7 @@ func (ts *TestSuite) PostForm(server *echo.Echo, path string, form url.Values, c
|
|||||||
|
|
||||||
func testConfig() *Config {
|
func testConfig() *Config {
|
||||||
config := DefaultConfig()
|
config := DefaultConfig()
|
||||||
noRateLimit := rateLimitConfig{Disable: false}
|
noRateLimit := rateLimitConfig{Disable: true}
|
||||||
config.RateLimit = noRateLimit
|
config.RateLimit = noRateLimit
|
||||||
config.MinPasswordLength = 8
|
config.MinPasswordLength = 8
|
||||||
config.FallbackAPIServers = []FallbackAPIServer{}
|
config.FallbackAPIServers = []FallbackAPIServer{}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user