mirror of
https://github.com/caddyserver/caddy.git
synced 2025-08-11 09:16:26 -04:00
fmt
Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com>
This commit is contained in:
parent
07ad9534fb
commit
9f586657e8
@ -122,7 +122,6 @@ func TestPreferOrder(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
func TestValidate(t *testing.T) {
|
||||
type testCase struct {
|
||||
name string
|
||||
|
@ -1046,10 +1046,10 @@ func TestNetWriter_WALBufferingDuringOutage(t *testing.T) {
|
||||
|
||||
// Create and provision NetWriter
|
||||
nw := &NetWriter{
|
||||
Address: server.addr,
|
||||
DialTimeout: caddy.Duration(2 * time.Second),
|
||||
Address: server.addr,
|
||||
DialTimeout: caddy.Duration(2 * time.Second),
|
||||
ReconnectInterval: caddy.Duration(1 * time.Second), // Short reconnect interval for testing
|
||||
SoftStart: true,
|
||||
SoftStart: true,
|
||||
}
|
||||
|
||||
ctx := caddy.Context{
|
||||
@ -1117,8 +1117,6 @@ func TestNetWriter_WALBufferingDuringOutage(t *testing.T) {
|
||||
t.Fatalf("WAL directory was not created: %s", walDir)
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Store outage messages that might have been received before failure
|
||||
server.mu.RLock()
|
||||
preRestartMessages := append([]string(nil), server.messages...)
|
||||
|
Loading…
x
Reference in New Issue
Block a user