From 405f5313225e9b065342d5d83138f89685615eed Mon Sep 17 00:00:00 2001 From: Frank Mueller Date: Fri, 11 Aug 2023 19:39:06 +0200 Subject: [PATCH] Fix error made during testing --- etc/etc_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/etc/etc_test.go b/etc/etc_test.go index 8dc01e5..4e8389c 100644 --- a/etc/etc_test.go +++ b/etc/etc_test.go @@ -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") @@ -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") }