mirror of
https://github.com/gofiber/storage.git
synced 2025-10-27 02:10:21 +08:00
chore: rename variable
This commit is contained in:
@@ -33,7 +33,7 @@ type testStoreSettings struct {
|
|||||||
|
|
||||||
// TLS settings
|
// TLS settings
|
||||||
withSecureURL bool
|
withSecureURL bool
|
||||||
withMTLSdisabled bool
|
withMTLSDisabled bool
|
||||||
withTLS bool
|
withTLS bool
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -55,7 +55,7 @@ func withTLS(secureURL bool, mtlsDisabled bool) testStoreOption {
|
|||||||
return func(o *testStoreSettings) {
|
return func(o *testStoreSettings) {
|
||||||
o.withTLS = true
|
o.withTLS = true
|
||||||
o.withSecureURL = secureURL
|
o.withSecureURL = secureURL
|
||||||
o.withMTLSdisabled = mtlsDisabled
|
o.withMTLSDisabled = mtlsDisabled
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -159,7 +159,7 @@ func newTestStore(t testing.TB, opts ...testStoreOption) *Storage {
|
|||||||
"--tls-auth-clients", "yes",
|
"--tls-auth-clients", "yes",
|
||||||
}
|
}
|
||||||
|
|
||||||
if settings.withMTLSdisabled {
|
if settings.withMTLSDisabled {
|
||||||
cmds = append(cmds, "--tls-auth-clients", "no")
|
cmds = append(cmds, "--tls-auth-clients", "no")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user