mirror of
https://github.com/valyala/fasthttp.git
synced 2026-06-14 15:56:44 +03:00
go fmt ./...
This commit is contained in:
+1
-1
@@ -186,7 +186,7 @@ func TestParseUfloatSuccess(t *testing.T) {
|
||||
testParseUfloatSuccess(t, "123.456", 123.456)
|
||||
testParseUfloatSuccess(t, "123", 123)
|
||||
testParseUfloatSuccess(t, "1234e2", 1234e2)
|
||||
testParseUfloatSuccess(t, "1234E-5", 1234E-5)
|
||||
testParseUfloatSuccess(t, "1234E-5", 1234e-5)
|
||||
testParseUfloatSuccess(t, "1.234e+3", 1.234e+3)
|
||||
}
|
||||
|
||||
|
||||
@@ -7,12 +7,12 @@ import (
|
||||
)
|
||||
|
||||
func TestListen(t *testing.T) {
|
||||
_, err := Listen("tcp6", "[::1]:10082")
|
||||
if err == nil {
|
||||
t.Fatalf("unexpected non-error creating listener")
|
||||
}
|
||||
_, err := Listen("tcp6", "[::1]:10082")
|
||||
if err == nil {
|
||||
t.Fatalf("unexpected non-error creating listener")
|
||||
}
|
||||
|
||||
if _, errnoreuseport := err.(*ErrNoReusePort); !errnoreuseport {
|
||||
t.Fatalf("unexpected error creating listener: %s", err)
|
||||
}
|
||||
if _, errnoreuseport := err.(*ErrNoReusePort); !errnoreuseport {
|
||||
t.Fatalf("unexpected error creating listener: %s", err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user