config: sync admin and RTMP port defaults
This commit is contained in:
parent
597b5f265b
commit
c5dc2b7e21
6 changed files with 35 additions and 8 deletions
|
|
@ -42,3 +42,9 @@ func TestSPAFallbackSmoke(t *testing.T) {
|
|||
t.Fatalf("spa body missing root: %s", rec.Body.String())
|
||||
}
|
||||
}
|
||||
|
||||
func TestAdminAPIURLDefaultUsesAdminAPIPort(t *testing.T) {
|
||||
if got, want := adminAPIURL(""), "http://127.0.0.1:2599"; got != want {
|
||||
t.Fatalf("adminAPIURL(empty) = %q, want %q", got, want)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue