mirror of
https://github.com/gomods/athens
synced 2026-02-03 12:10:32 +00:00
pkg/config: ensure port format (#1187)
* pkg/config: ensure port format * fix tests
This commit is contained in:
@@ -123,8 +123,8 @@ func TestEnvOverridesPORT(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatalf("Env override failed: %v", err)
|
||||
}
|
||||
if conf.Port != "5000" {
|
||||
t.Fatalf("expected PORT env to be 5000 but got %v", conf.Port)
|
||||
if conf.Port != ":5000" {
|
||||
t.Fatalf("expected PORT env to be :5000 but got %v", conf.Port)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user