mirror of
https://github.com/caddyserver/caddy.git
synced 2025-12-08 06:09:53 +00:00
Clean up Dispenser and filename handling a bit
This commit is contained in:
parent
59910923d1
commit
8420a2f250
5 changed files with 33 additions and 47 deletions
|
|
@ -308,9 +308,9 @@ func TestDispenser_ArgErr_Err(t *testing.T) {
|
|||
}
|
||||
|
||||
func newTestDispenser(input string) *Dispenser {
|
||||
tokens, err := allTokens(strings.NewReader(input))
|
||||
tokens, err := allTokens("Testfile", strings.NewReader(input))
|
||||
if err != nil && err != io.EOF {
|
||||
log.Fatalf("getting all tokens from input: %v", err)
|
||||
}
|
||||
return NewDispenser("Testfile", tokens)
|
||||
return NewDispenser(tokens)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue