mirror of
https://github.com/minio/minio.git
synced 2025-11-22 10:37:42 -05:00
Provide package http as a http.Server wrapper
This commit is contained in:
19
pkg/http/server_test.go
Normal file
19
pkg/http/server_test.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package http
|
||||
|
||||
import (
|
||||
. "gopkg.in/check.v1"
|
||||
"testing"
|
||||
)
|
||||
|
||||
type MySuite struct{}
|
||||
|
||||
var _ = Suite(&MySuite{})
|
||||
|
||||
func Test(t *testing.T) { TestingT(t) }
|
||||
|
||||
func (s *MySuite) TestHTTP(c *C) {
|
||||
server := NewServer()
|
||||
err := server.Listen("localhost:7000")
|
||||
c.Assert(err, IsNil)
|
||||
c.Assert(server.GetlistenURL(), Not(Equals), "")
|
||||
}
|
||||
Reference in New Issue
Block a user