Skip to content

Commit

Permalink
test: fixed the TestUnixSocket test on windows (#2595)
Browse files Browse the repository at this point in the history
Co-authored-by: thinkerou <thinkerou@gmail.com>
  • Loading branch information
laojianzi and thinkerou authored Jan 11, 2021
1 parent a28cc08 commit 4d2dad5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gin_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
"net/http"
"net/http/httptest"
"os"
"path/filepath"
"sync"
"testing"
"time"
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 4d2dad5

Please sign in to comment.