Skip to content

Commit

Permalink
Fix error made during testing
Browse files Browse the repository at this point in the history
  • Loading branch information
themue committed Aug 11, 2023
1 parent 1764001 commit 405f531
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion etc/etc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func TestWrite(t *testing.T) {
Assert(t, NotNil(cfgB), "configuration expected")

ts := cfgB.At("global", "hostAddress").AsString("services.example.com:8080")
Assert(t, Equal(ts, "localhost:8080"), "host address should be localhost:8080")
Assert(t, Equal(ts, "localhost:8040"), "host address should be localhost:8040")

ti := cfgB.At("global", "maxUsers").AsInt(0)
Assert(t, Equal(ti, 50), "max users should be 50")
Expand Down Expand Up @@ -136,6 +136,9 @@ func TestMacros(t *testing.T) {
env := qaenv.NewEinvironment()
defer env.Restore()

err = env.Set("MYAPP_TITLE", "Fantastic Test Servicee")
Assert(t, NoError(err), "no error expected")

ts = cfg.At("global", "title").AsString("Test in Progress")
Assert(t, Equal(ts, "Fantastic Test Servicee"), "title should be Fantastic Test Servicee")
}
Expand Down

0 comments on commit 405f531

Please sign in to comment.