mirror of
https://github.com/minio/minio.git
synced 2025-02-24 11:59:14 -05:00
Merge pull request #806 from harshavardhana/tests
Tests were running 4 times due to multiple times the TestingT{} was b…
This commit is contained in:
commit
5721d85c9a
@ -22,7 +22,6 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
|
||||||
|
|
||||||
"encoding/xml"
|
"encoding/xml"
|
||||||
"net/http"
|
"net/http"
|
||||||
@ -33,8 +32,6 @@ import (
|
|||||||
"github.com/minio/minio/pkg/server/api"
|
"github.com/minio/minio/pkg/server/api"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestAPIDonutCache(t *testing.T) { TestingT(t) }
|
|
||||||
|
|
||||||
type MyAPIDonutCacheSuite struct {
|
type MyAPIDonutCacheSuite struct {
|
||||||
root string
|
root string
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,6 @@ import (
|
|||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
|
||||||
|
|
||||||
"encoding/xml"
|
"encoding/xml"
|
||||||
"net/http"
|
"net/http"
|
||||||
@ -34,8 +33,6 @@ import (
|
|||||||
"github.com/minio/minio/pkg/server/api"
|
"github.com/minio/minio/pkg/server/api"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestAPIDonut(t *testing.T) { TestingT(t) }
|
|
||||||
|
|
||||||
type MyAPIDonutSuite struct {
|
type MyAPIDonutSuite struct {
|
||||||
root string
|
root string
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,6 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
|
||||||
|
|
||||||
"encoding/xml"
|
"encoding/xml"
|
||||||
"net/http"
|
"net/http"
|
||||||
@ -35,8 +34,6 @@ import (
|
|||||||
"github.com/minio/minio/pkg/server/api"
|
"github.com/minio/minio/pkg/server/api"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestAPISignatureV4(t *testing.T) { TestingT(t) }
|
|
||||||
|
|
||||||
type MyAPISignatureV4Suite struct {
|
type MyAPISignatureV4Suite struct {
|
||||||
root string
|
root string
|
||||||
req *http.Request
|
req *http.Request
|
||||||
|
@ -19,7 +19,6 @@ package server
|
|||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/http/httptest"
|
"net/http/httptest"
|
||||||
"testing"
|
|
||||||
|
|
||||||
jsonrpc "github.com/minio/minio/internal/github.com/gorilla/rpc/v2/json"
|
jsonrpc "github.com/minio/minio/internal/github.com/gorilla/rpc/v2/json"
|
||||||
. "github.com/minio/minio/internal/gopkg.in/check.v1"
|
. "github.com/minio/minio/internal/gopkg.in/check.v1"
|
||||||
@ -27,8 +26,6 @@ import (
|
|||||||
"github.com/minio/minio/pkg/server/rpc"
|
"github.com/minio/minio/pkg/server/rpc"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestRPC(t *testing.T) { TestingT(t) }
|
|
||||||
|
|
||||||
type MyRPCSuite struct{}
|
type MyRPCSuite struct{}
|
||||||
|
|
||||||
var _ = Suite(&MyRPCSuite{})
|
var _ = Suite(&MyRPCSuite{})
|
||||||
|
@ -28,10 +28,16 @@ import (
|
|||||||
"regexp"
|
"regexp"
|
||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
"unicode/utf8"
|
"unicode/utf8"
|
||||||
|
|
||||||
|
. "github.com/minio/minio/internal/gopkg.in/check.v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// Hook up gocheck into the "go test" runner.
|
||||||
|
func Test(t *testing.T) { TestingT(t) }
|
||||||
|
|
||||||
const (
|
const (
|
||||||
authHeader = "AWS4-HMAC-SHA256"
|
authHeader = "AWS4-HMAC-SHA256"
|
||||||
iso8601Format = "20060102T150405Z"
|
iso8601Format = "20060102T150405Z"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user