loginsrv

Unnamed repository; edit this file 'description' to name the repository.
git clone git@jamesshield.xyz:repos/loginsrv.git
Log | Files | Refs | README | LICENSE

commit 8c99657f77f73d2d5b784e673eb4cd6694e3664f
parent 94bd65b2a76d7a98d9fea5bf12da20a0e91be68f
Author: magikstm <myskina@gmail.com>
Date:   Thu,  9 Nov 2017 22:22:56 -0500

Minor correction for cross-platform filepath

Diffstat:
Mcaddy/setup_test.go | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/caddy/setup_test.go b/caddy/setup_test.go @@ -7,6 +7,7 @@ import ( . "github.com/stretchr/testify/assert" "github.com/tarent/loginsrv/login" "io/ioutil" + "path/filepath" "os" "testing" "time" @@ -176,8 +177,8 @@ func TestSetup(t *testing.T) { func TestSetup_RelativeTemplateFile(t *testing.T) { caddyfile := "loginsrv {\n template myTemplate.tpl\n simple bob=secret\n}" root, _ := ioutil.TempDir("", "") - expectedPath := root + "/myTemplate.tpl" - + expectedPath := filepath.FromSlash(root + "/myTemplate.tpl") + c := caddy.NewTestController("http", caddyfile) c.Key = "RelativeTemplateFileTest" config := httpserver.GetConfig(c)