mirror of https://github.com/gin-gonic/gin.git
test: fixed the TestUnixSocket test on windows (#2595)
Co-authored-by: thinkerou <thinkerou@gmail.com>
This commit is contained in:
parent
a28cc088b5
commit
4d2dad5961
|
@ -14,6 +14,7 @@ import (
|
|||
"net/http"
|
||||
"net/http/httptest"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"sync"
|
||||
"testing"
|
||||
"time"
|
||||
|
@ -146,7 +147,7 @@ func TestRunWithPort(t *testing.T) {
|
|||
func TestUnixSocket(t *testing.T) {
|
||||
router := New()
|
||||
|
||||
unixTestSocket := "/tmp/unix_unit_test"
|
||||
unixTestSocket := filepath.Join(os.TempDir(), "unix_unit_test")
|
||||
|
||||
defer os.Remove(unixTestSocket)
|
||||
|
||||
|
|
Loading…
Reference in New Issue