Fixes unit test when running in Windows

This commit is contained in:
Manu Mtz-Almeida 2015-05-31 18:44:34 +02:00
parent 1228b03914
commit 0d5dc25d39

View File

@ -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()