tests: Remove dependency on check.v1 (#5034)

This PR addresses a long standing dependency on
`gopkg.in/check.v1` project used for our tests.
All tests are re-written to use the go default
testing framework instead.

There was no reason for us to use an external
package where Go tools are sufficient for this.
This commit is contained in:
Harshavardhana
2017-10-10 02:14:42 -07:00
committed by GitHub
parent d28b3d8801
commit 4deefa3695
21 changed files with 1229 additions and 3208 deletions

View File

@@ -74,9 +74,7 @@ func init() {
}
// concurreny level for certain parallel tests.
const (
testConcurrencyLevel = 10
)
const testConcurrencyLevel = 10
///
/// Excerpts from @lsegal - https://github.com/aws/aws-sdk-js/issues/659#issuecomment-120477258
@@ -147,21 +145,6 @@ func calculateStreamContentLength(dataLen, chunkSize int64) int64 {
return streamLen
}
// Ask the kernel for a free open port.
func getFreePort() string {
addr, err := net.ResolveTCPAddr("tcp", "localhost:0")
if err != nil {
panic(err)
}
l, err := net.ListenTCP("tcp", addr)
if err != nil {
panic(err)
}
defer l.Close()
return fmt.Sprintf("%d", l.Addr().(*net.TCPAddr).Port)
}
func prepareFS() (ObjectLayer, string, error) {
nDisks := 1
fsDirs, err := getRandomDisks(nDisks)