Skip to content
Myr

test: fixed the TestUnixSocket test on windows (#2595)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Jeff · committed by GitHub · parent a28cc08 · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Co-authored-by: thinkerou <thinkerou@gmail.com>

Diff stats

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:gin_integration_test.go+2 added-1 removed
12 unmodified lines
13 "net"14 "net/http"15 "net/http/httptest"16 "os"17 "path/filepath"18 "sync"19 "testing"20 "time"21
124 unmodified lines
146147func TestUnixSocket(t *testing.T) {148 router := New()149149 unixTestSocket := "/tmp/unix_unit_test"150 unixTestSocket := filepath.Join(os.TempDir(), "unix_unit_test")151152 defer os.Remove(unixTestSocket)153154 go func() {
153 unmodified lines