Explorar o código

Fixes unit test when running in Windows

Manu Mtz-Almeida %!s(int64=10) %!d(string=hai) anos
pai
achega
0d5dc25d39
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      routes_test.go

+ 2 - 2
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()