pkg/config: ensure port format (#1187)

* pkg/config: ensure port format

* fix tests
This commit is contained in:
Marwan Sulaiman
2019-04-14 11:21:45 -04:00
committed by GitHub
parent a7aee5b235
commit c11212ba16
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -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)
}
}