From 0d5dc25d39e49efc1ae5a0683562b159c76b184c Mon Sep 17 00:00:00 2001 From: Manu Mtz-Almeida Date: Sun, 31 May 2015 18:44:34 +0200 Subject: [PATCH] Fixes unit test when running in Windows --- routes_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes_test.go b/routes_test.go index 4db2aa84..ec50b9d0 100644 --- a/routes_test.go +++ b/routes_test.go @@ -10,7 +10,7 @@ import ( "net/http" "net/http/httptest" "os" - "path" + "path/filepath" "testing" "github.com/stretchr/testify/assert" @@ -161,7 +161,7 @@ func TestRouteStaticFile(t *testing.T) { f.WriteString("Gin Web Framework") f.Close() - dir, filename := path.Split(f.Name()) + dir, filename := filepath.Split(f.Name()) // SETUP gin router := New()