From 89b4c6e0d1b65514c04f1a05a13b55a1d269bde5 Mon Sep 17 00:00:00 2001 From: Sasha Myasoedov Date: Thu, 24 Jul 2014 16:51:11 +0300 Subject: [PATCH] Replaced deprecated ServeFiles --- gin_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gin_test.go b/gin_test.go index 5bf737c7..730794ef 100644 --- a/gin_test.go +++ b/gin_test.go @@ -334,7 +334,7 @@ func TestHandleStaticFile(t *testing.T) { w := httptest.NewRecorder() r := Default() - r.ServeFiles("/*filepath", http.Dir("./")) + r.Static("./", testRoot) r.ServeHTTP(w, req) @@ -359,7 +359,7 @@ func TestHandleStaticDir(t *testing.T) { w := httptest.NewRecorder() r := Default() - r.ServeFiles("/*filepath", http.Dir("./")) + r.Static("/", "./") r.ServeHTTP(w, req)