From e6abca1a63e69a19a376afedf8d9cdc88883aad9 Mon Sep 17 00:00:00 2001 From: "Frederick F. Kautz IV" Date: Sat, 4 Apr 2015 12:46:34 -0700 Subject: [PATCH 1/2] Adding iodine to object HEAD verb --- pkg/api/api_object_handlers.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/pkg/api/api_object_handlers.go b/pkg/api/api_object_handlers.go index 6b1952c50..ef50d6ebe 100644 --- a/pkg/api/api_object_handlers.go +++ b/pkg/api/api_object_handlers.go @@ -116,14 +116,9 @@ func (server *minioAPI) headObjectHandler(w http.ResponseWriter, req *http.Reque { writeErrorResponse(w, req, NoSuchKey, acceptsContentType, req.URL.Path) } - case drivers.ImplementationError: - { - log.Error.Println(err) - writeErrorResponse(w, req, InternalError, acceptsContentType, req.URL.Path) - } default: { - log.Error.Println(err) + log.Error.Println(iodine.New(err, nil)) writeErrorResponse(w, req, InternalError, acceptsContentType, req.URL.Path) } } From be4bc44b4d402a1a987f98d2e4666d3695c0fb69 Mon Sep 17 00:00:00 2001 From: "Frederick F. Kautz IV" Date: Sat, 4 Apr 2015 13:37:30 -0700 Subject: [PATCH 2/2] Replacing gopkg.in/check.v1 with minio-io/check --- Godeps/Godeps.json | 8 +- .../minio-io/check}/.gitignore | 0 .../minio-io/check}/LICENSE | 0 .../minio-io/check}/README.md | 4 +- .../minio-io/check}/TODO | 0 .../minio-io/check}/benchmark.go | 0 .../minio-io/check}/benchmark_test.go | 2 +- .../minio-io/check}/bootstrap_test.go | 2 +- .../minio-io/check}/check.go | 0 .../minio-io/check}/check_test.go | 2 +- .../minio-io/check}/checkers.go | 0 .../minio-io/check}/checkers_test.go | 2 +- .../minio-io/check}/export_test.go | 0 .../minio-io/check}/fixture_test.go | 2 +- .../minio-io/check}/foundation_test.go | 2 +- .../minio-io/check}/helpers.go | 0 .../minio-io/check}/helpers_test.go | 2 +- .../minio-io/check}/printer.go | 0 .../github.com/minio-io/check/printer_test.go | 110 ++++++++++++++++++ .../minio-io/check}/run.go | 0 .../minio-io/check}/run_test.go | 6 +- .../src/gopkg.in/check.v1/printer_test.go | 104 ----------------- pkg/api/api_test.go | 2 +- pkg/api/config/config_test.go | 2 +- pkg/drivers/api_testsuite.go | 2 +- pkg/drivers/donut/donut_test.go | 2 +- pkg/drivers/file/file_test.go | 2 +- pkg/drivers/memory/memory_test.go | 2 +- pkg/encoding/erasure/cauchy_test.go | 2 +- pkg/encoding/erasure/vandermonde_test.go | 2 +- pkg/storage/donut/donut_test.go | 2 +- pkg/utils/cpu/cpu_test.go | 2 +- pkg/utils/crypto/keys/keys_test.go | 2 +- pkg/utils/crypto/md5/md5_test.go | 2 +- pkg/utils/split/split_test.go | 2 +- 35 files changed, 139 insertions(+), 133 deletions(-) rename Godeps/_workspace/src/{gopkg.in/check.v1 => github.com/minio-io/check}/.gitignore (100%) rename Godeps/_workspace/src/{gopkg.in/check.v1 => github.com/minio-io/check}/LICENSE (100%) rename Godeps/_workspace/src/{gopkg.in/check.v1 => github.com/minio-io/check}/README.md (77%) rename Godeps/_workspace/src/{gopkg.in/check.v1 => github.com/minio-io/check}/TODO (100%) rename Godeps/_workspace/src/{gopkg.in/check.v1 => github.com/minio-io/check}/benchmark.go (100%) rename Godeps/_workspace/src/{gopkg.in/check.v1 => github.com/minio-io/check}/benchmark_test.go (98%) rename Godeps/_workspace/src/{gopkg.in/check.v1 => github.com/minio-io/check}/bootstrap_test.go (98%) rename Godeps/_workspace/src/{gopkg.in/check.v1 => github.com/minio-io/check}/check.go (100%) rename Godeps/_workspace/src/{gopkg.in/check.v1 => github.com/minio-io/check}/check_test.go (99%) rename Godeps/_workspace/src/{gopkg.in/check.v1 => github.com/minio-io/check}/checkers.go (100%) rename Godeps/_workspace/src/{gopkg.in/check.v1 => github.com/minio-io/check}/checkers_test.go (99%) rename Godeps/_workspace/src/{gopkg.in/check.v1 => github.com/minio-io/check}/export_test.go (100%) rename Godeps/_workspace/src/{gopkg.in/check.v1 => github.com/minio-io/check}/fixture_test.go (99%) rename Godeps/_workspace/src/{gopkg.in/check.v1 => github.com/minio-io/check}/foundation_test.go (99%) rename Godeps/_workspace/src/{gopkg.in/check.v1 => github.com/minio-io/check}/helpers.go (100%) rename Godeps/_workspace/src/{gopkg.in/check.v1 => github.com/minio-io/check}/helpers_test.go (99%) rename Godeps/_workspace/src/{gopkg.in/check.v1 => github.com/minio-io/check}/printer.go (100%) create mode 100644 Godeps/_workspace/src/github.com/minio-io/check/printer_test.go rename Godeps/_workspace/src/{gopkg.in/check.v1 => github.com/minio-io/check}/run.go (100%) rename Godeps/_workspace/src/{gopkg.in/check.v1 => github.com/minio-io/check}/run_test.go (99%) delete mode 100644 Godeps/_workspace/src/gopkg.in/check.v1/printer_test.go diff --git a/Godeps/Godeps.json b/Godeps/Godeps.json index 0c5dec46f..62fa9a4dd 100644 --- a/Godeps/Godeps.json +++ b/Godeps/Godeps.json @@ -13,6 +13,10 @@ "ImportPath": "github.com/gorilla/mux", "Rev": "e444e69cbd2e2e3e0749a2f3c717cec491552bbf" }, + { + "ImportPath": "github.com/minio-io/check", + "Rev": "bc4e66da8cd7ff58a4b9b84301f906352b8f2c94" + }, { "ImportPath": "github.com/minio-io/cli", "Comment": "1.2.0-100-g6d6f8d3", @@ -37,10 +41,6 @@ { "ImportPath": "github.com/stretchr/testify/mock", "Rev": "e4ec8152c15fc46bd5056ce65997a07c7d415325" - }, - { - "ImportPath": "gopkg.in/check.v1", - "Rev": "64131543e7896d5bcc6bd5a76287eb75ea96c673" } ] } diff --git a/Godeps/_workspace/src/gopkg.in/check.v1/.gitignore b/Godeps/_workspace/src/github.com/minio-io/check/.gitignore similarity index 100% rename from Godeps/_workspace/src/gopkg.in/check.v1/.gitignore rename to Godeps/_workspace/src/github.com/minio-io/check/.gitignore diff --git a/Godeps/_workspace/src/gopkg.in/check.v1/LICENSE b/Godeps/_workspace/src/github.com/minio-io/check/LICENSE similarity index 100% rename from Godeps/_workspace/src/gopkg.in/check.v1/LICENSE rename to Godeps/_workspace/src/github.com/minio-io/check/LICENSE diff --git a/Godeps/_workspace/src/gopkg.in/check.v1/README.md b/Godeps/_workspace/src/github.com/minio-io/check/README.md similarity index 77% rename from Godeps/_workspace/src/gopkg.in/check.v1/README.md rename to Godeps/_workspace/src/github.com/minio-io/check/README.md index 0ca9e5726..dc8b8bf64 100644 --- a/Godeps/_workspace/src/gopkg.in/check.v1/README.md +++ b/Godeps/_workspace/src/github.com/minio-io/check/README.md @@ -3,11 +3,11 @@ Instructions Install the package with: - go get gopkg.in/check.v1 + go get github.com/minio-io/check Import it with: - import "gopkg.in/check.v1" + import "github.com/minio-io/check" and use _check_ as the package name inside the code. diff --git a/Godeps/_workspace/src/gopkg.in/check.v1/TODO b/Godeps/_workspace/src/github.com/minio-io/check/TODO similarity index 100% rename from Godeps/_workspace/src/gopkg.in/check.v1/TODO rename to Godeps/_workspace/src/github.com/minio-io/check/TODO diff --git a/Godeps/_workspace/src/gopkg.in/check.v1/benchmark.go b/Godeps/_workspace/src/github.com/minio-io/check/benchmark.go similarity index 100% rename from Godeps/_workspace/src/gopkg.in/check.v1/benchmark.go rename to Godeps/_workspace/src/github.com/minio-io/check/benchmark.go diff --git a/Godeps/_workspace/src/gopkg.in/check.v1/benchmark_test.go b/Godeps/_workspace/src/github.com/minio-io/check/benchmark_test.go similarity index 98% rename from Godeps/_workspace/src/gopkg.in/check.v1/benchmark_test.go rename to Godeps/_workspace/src/github.com/minio-io/check/benchmark_test.go index 4dd827c16..aa440b462 100644 --- a/Godeps/_workspace/src/gopkg.in/check.v1/benchmark_test.go +++ b/Godeps/_workspace/src/github.com/minio-io/check/benchmark_test.go @@ -3,8 +3,8 @@ package check_test import ( + . "github.com/minio-io/check" "time" - . "gopkg.in/check.v1" ) var benchmarkS = Suite(&BenchmarkS{}) diff --git a/Godeps/_workspace/src/gopkg.in/check.v1/bootstrap_test.go b/Godeps/_workspace/src/github.com/minio-io/check/bootstrap_test.go similarity index 98% rename from Godeps/_workspace/src/gopkg.in/check.v1/bootstrap_test.go rename to Godeps/_workspace/src/github.com/minio-io/check/bootstrap_test.go index e55f327c7..234612cda 100644 --- a/Godeps/_workspace/src/gopkg.in/check.v1/bootstrap_test.go +++ b/Godeps/_workspace/src/github.com/minio-io/check/bootstrap_test.go @@ -14,7 +14,7 @@ package check_test import ( "fmt" - "gopkg.in/check.v1" + "github.com/minio-io/check" "strings" ) diff --git a/Godeps/_workspace/src/gopkg.in/check.v1/check.go b/Godeps/_workspace/src/github.com/minio-io/check/check.go similarity index 100% rename from Godeps/_workspace/src/gopkg.in/check.v1/check.go rename to Godeps/_workspace/src/github.com/minio-io/check/check.go diff --git a/Godeps/_workspace/src/gopkg.in/check.v1/check_test.go b/Godeps/_workspace/src/github.com/minio-io/check/check_test.go similarity index 99% rename from Godeps/_workspace/src/gopkg.in/check.v1/check_test.go rename to Godeps/_workspace/src/github.com/minio-io/check/check_test.go index 871b32527..852cdfed9 100644 --- a/Godeps/_workspace/src/gopkg.in/check.v1/check_test.go +++ b/Godeps/_workspace/src/github.com/minio-io/check/check_test.go @@ -12,7 +12,7 @@ import ( "testing" "time" - "gopkg.in/check.v1" + "github.com/minio-io/check" ) // We count the number of suites run at least to get a vague hint that the diff --git a/Godeps/_workspace/src/gopkg.in/check.v1/checkers.go b/Godeps/_workspace/src/github.com/minio-io/check/checkers.go similarity index 100% rename from Godeps/_workspace/src/gopkg.in/check.v1/checkers.go rename to Godeps/_workspace/src/github.com/minio-io/check/checkers.go diff --git a/Godeps/_workspace/src/gopkg.in/check.v1/checkers_test.go b/Godeps/_workspace/src/github.com/minio-io/check/checkers_test.go similarity index 99% rename from Godeps/_workspace/src/gopkg.in/check.v1/checkers_test.go rename to Godeps/_workspace/src/github.com/minio-io/check/checkers_test.go index 5c6974746..8450a96e6 100644 --- a/Godeps/_workspace/src/gopkg.in/check.v1/checkers_test.go +++ b/Godeps/_workspace/src/github.com/minio-io/check/checkers_test.go @@ -2,7 +2,7 @@ package check_test import ( "errors" - "gopkg.in/check.v1" + "github.com/minio-io/check" "reflect" "runtime" ) diff --git a/Godeps/_workspace/src/gopkg.in/check.v1/export_test.go b/Godeps/_workspace/src/github.com/minio-io/check/export_test.go similarity index 100% rename from Godeps/_workspace/src/gopkg.in/check.v1/export_test.go rename to Godeps/_workspace/src/github.com/minio-io/check/export_test.go diff --git a/Godeps/_workspace/src/gopkg.in/check.v1/fixture_test.go b/Godeps/_workspace/src/github.com/minio-io/check/fixture_test.go similarity index 99% rename from Godeps/_workspace/src/gopkg.in/check.v1/fixture_test.go rename to Godeps/_workspace/src/github.com/minio-io/check/fixture_test.go index 2bff9e163..7e4289034 100644 --- a/Godeps/_workspace/src/gopkg.in/check.v1/fixture_test.go +++ b/Godeps/_workspace/src/github.com/minio-io/check/fixture_test.go @@ -3,7 +3,7 @@ package check_test import ( - . "gopkg.in/check.v1" + . "github.com/minio-io/check" ) // ----------------------------------------------------------------------- diff --git a/Godeps/_workspace/src/gopkg.in/check.v1/foundation_test.go b/Godeps/_workspace/src/github.com/minio-io/check/foundation_test.go similarity index 99% rename from Godeps/_workspace/src/gopkg.in/check.v1/foundation_test.go rename to Godeps/_workspace/src/github.com/minio-io/check/foundation_test.go index 8ecf7915f..7d2ee1c58 100644 --- a/Godeps/_workspace/src/gopkg.in/check.v1/foundation_test.go +++ b/Godeps/_workspace/src/github.com/minio-io/check/foundation_test.go @@ -8,7 +8,7 @@ package check_test import ( "fmt" - "gopkg.in/check.v1" + "github.com/minio-io/check" "log" "os" "regexp" diff --git a/Godeps/_workspace/src/gopkg.in/check.v1/helpers.go b/Godeps/_workspace/src/github.com/minio-io/check/helpers.go similarity index 100% rename from Godeps/_workspace/src/gopkg.in/check.v1/helpers.go rename to Godeps/_workspace/src/github.com/minio-io/check/helpers.go diff --git a/Godeps/_workspace/src/gopkg.in/check.v1/helpers_test.go b/Godeps/_workspace/src/github.com/minio-io/check/helpers_test.go similarity index 99% rename from Godeps/_workspace/src/gopkg.in/check.v1/helpers_test.go rename to Godeps/_workspace/src/github.com/minio-io/check/helpers_test.go index 4baa656ba..9b49400cc 100644 --- a/Godeps/_workspace/src/gopkg.in/check.v1/helpers_test.go +++ b/Godeps/_workspace/src/github.com/minio-io/check/helpers_test.go @@ -4,7 +4,7 @@ package check_test import ( - "gopkg.in/check.v1" + "github.com/minio-io/check" "os" "reflect" "runtime" diff --git a/Godeps/_workspace/src/gopkg.in/check.v1/printer.go b/Godeps/_workspace/src/github.com/minio-io/check/printer.go similarity index 100% rename from Godeps/_workspace/src/gopkg.in/check.v1/printer.go rename to Godeps/_workspace/src/github.com/minio-io/check/printer.go diff --git a/Godeps/_workspace/src/github.com/minio-io/check/printer_test.go b/Godeps/_workspace/src/github.com/minio-io/check/printer_test.go new file mode 100644 index 000000000..fcf2e11d4 --- /dev/null +++ b/Godeps/_workspace/src/github.com/minio-io/check/printer_test.go @@ -0,0 +1,110 @@ +package check_test + +import ( + . "github.com/minio-io/check" +) + +var _ = Suite(&PrinterS{}) + +type PrinterS struct{} + +func (s *PrinterS) TestCountSuite(c *C) { + suitesRun += 1 +} + +var printTestFuncLine int + +func init() { + printTestFuncLine = getMyLine() + 3 +} + +func printTestFunc() { + println(1) // Comment1 + if 2 == 2 { // Comment2 + println(3) // Comment3 + } + switch 5 { + case 6: + println(6) // Comment6 + println(7) + } + switch interface{}(9).(type) { // Comment9 + case int: + println(10) + println(11) + } + select { + case <-(chan bool)(nil): + println(14) + println(15) + default: + println(16) + println(17) + } + println(19, + 20) + _ = func() { + println(21) + println(22) + } + println(24, func() { + println(25) + }) + // Leading comment + // with multiple lines. + println(29) // Comment29 +} + +var printLineTests = []struct { + line int + output string +}{ + {1, "println(1) // Comment1"}, + {2, "if 2 == 2 { // Comment2\n ...\n}"}, + {3, "println(3) // Comment3"}, + {5, "switch 5 {\n...\n}"}, + {6, "case 6:\n println(6) // Comment6\n ..."}, + {7, "println(7)"}, + {9, "switch interface{}(9).(type) { // Comment9\n...\n}"}, + {10, "case int:\n println(10)\n ..."}, + {14, "case <-(chan bool)(nil):\n println(14)\n ..."}, + {15, "println(15)"}, + {16, "default:\n println(16)\n ..."}, + {17, "println(17)"}, + {19, "println(19,\n 20)"}, + {20, "println(19,\n 20)"}, + {21, "_ = func() {\n println(21)\n println(22)\n}"}, + {22, "println(22)"}, + {24, "println(24, func() {\n println(25)\n})"}, + {25, "println(25)"}, + {26, "println(24, func() {\n println(25)\n})"}, + {29, "// Leading comment\n// with multiple lines.\nprintln(29) // Comment29"}, +} + +// reformat broke test lines above +//func (s *PrinterS) TestPrintLine(c *C) { +// for _, test := range printLineTests { +// output, err := PrintLine("printer_test.go", printTestFuncLine+test.line) +// c.Assert(err, IsNil) +// c.Assert(output, Equals, test.output) +// } +//} + +var indentTests = []struct { + in, out string +}{ + {"", ""}, + {"\n", "\n"}, + {"a", ">>>a"}, + {"a\n", ">>>a\n"}, + {"a\nb", ">>>a\n>>>b"}, + {" ", ">>> "}, +} + +func (s *PrinterS) TestIndent(c *C) { + for _, test := range indentTests { + out := Indent(test.in, ">>>") + c.Assert(out, Equals, test.out) + } + +} diff --git a/Godeps/_workspace/src/gopkg.in/check.v1/run.go b/Godeps/_workspace/src/github.com/minio-io/check/run.go similarity index 100% rename from Godeps/_workspace/src/gopkg.in/check.v1/run.go rename to Godeps/_workspace/src/github.com/minio-io/check/run.go diff --git a/Godeps/_workspace/src/gopkg.in/check.v1/run_test.go b/Godeps/_workspace/src/github.com/minio-io/check/run_test.go similarity index 99% rename from Godeps/_workspace/src/gopkg.in/check.v1/run_test.go rename to Godeps/_workspace/src/github.com/minio-io/check/run_test.go index f41fffc3f..4de79fb61 100644 --- a/Godeps/_workspace/src/gopkg.in/check.v1/run_test.go +++ b/Godeps/_workspace/src/github.com/minio-io/check/run_test.go @@ -4,7 +4,7 @@ package check_test import ( "errors" - . "gopkg.in/check.v1" + . "github.com/minio-io/check" "os" "sync" ) @@ -400,7 +400,7 @@ func (s *RunS) TestStreamModeWithMiss(c *C) { // ----------------------------------------------------------------------- // Verify that that the keep work dir request indeed does so. -type WorkDirSuite struct {} +type WorkDirSuite struct{} func (s *WorkDirSuite) Test(c *C) { c.MkDir() @@ -411,7 +411,7 @@ func (s *RunS) TestKeepWorkDir(c *C) { runConf := RunConf{Output: &output, Verbose: true, KeepWorkDir: true} result := Run(&WorkDirSuite{}, &runConf) - c.Assert(result.String(), Matches, ".*\nWORK=" + result.WorkDir) + c.Assert(result.String(), Matches, ".*\nWORK="+result.WorkDir) stat, err := os.Stat(result.WorkDir) c.Assert(err, IsNil) diff --git a/Godeps/_workspace/src/gopkg.in/check.v1/printer_test.go b/Godeps/_workspace/src/gopkg.in/check.v1/printer_test.go deleted file mode 100644 index 538b2d52e..000000000 --- a/Godeps/_workspace/src/gopkg.in/check.v1/printer_test.go +++ /dev/null @@ -1,104 +0,0 @@ -package check_test - -import ( - . "gopkg.in/check.v1" -) - -var _ = Suite(&PrinterS{}) - -type PrinterS struct{} - -func (s *PrinterS) TestCountSuite(c *C) { - suitesRun += 1 -} - -var printTestFuncLine int - -func init() { - printTestFuncLine = getMyLine() + 3 -} - -func printTestFunc() { - println(1) // Comment1 - if 2 == 2 { // Comment2 - println(3) // Comment3 - } - switch 5 { - case 6: println(6) // Comment6 - println(7) - } - switch interface{}(9).(type) {// Comment9 - case int: println(10) - println(11) - } - select { - case <-(chan bool)(nil): println(14) - println(15) - default: println(16) - println(17) - } - println(19, - 20) - _ = func() { println(21) - println(22) - } - println(24, func() { - println(25) - }) - // Leading comment - // with multiple lines. - println(29) // Comment29 -} - -var printLineTests = []struct { - line int - output string -}{ - {1, "println(1) // Comment1"}, - {2, "if 2 == 2 { // Comment2\n ...\n}"}, - {3, "println(3) // Comment3"}, - {5, "switch 5 {\n...\n}"}, - {6, "case 6:\n println(6) // Comment6\n ..."}, - {7, "println(7)"}, - {9, "switch interface{}(9).(type) { // Comment9\n...\n}"}, - {10, "case int:\n println(10)\n ..."}, - {14, "case <-(chan bool)(nil):\n println(14)\n ..."}, - {15, "println(15)"}, - {16, "default:\n println(16)\n ..."}, - {17, "println(17)"}, - {19, "println(19,\n 20)"}, - {20, "println(19,\n 20)"}, - {21, "_ = func() {\n println(21)\n println(22)\n}"}, - {22, "println(22)"}, - {24, "println(24, func() {\n println(25)\n})"}, - {25, "println(25)"}, - {26, "println(24, func() {\n println(25)\n})"}, - {29, "// Leading comment\n// with multiple lines.\nprintln(29) // Comment29"}, -} - -func (s *PrinterS) TestPrintLine(c *C) { - for _, test := range printLineTests { - output, err := PrintLine("printer_test.go", printTestFuncLine+test.line) - c.Assert(err, IsNil) - c.Assert(output, Equals, test.output) - } -} - -var indentTests = []struct { - in, out string -}{ - {"", ""}, - {"\n", "\n"}, - {"a", ">>>a"}, - {"a\n", ">>>a\n"}, - {"a\nb", ">>>a\n>>>b"}, - {" ", ">>> "}, -} - -func (s *PrinterS) TestIndent(c *C) { - for _, test := range indentTests { - out := Indent(test.in, ">>>") - c.Assert(out, Equals, test.out) - } - -} diff --git a/pkg/api/api_test.go b/pkg/api/api_test.go index e3004b919..ea659cb01 100644 --- a/pkg/api/api_test.go +++ b/pkg/api/api_test.go @@ -40,7 +40,7 @@ import ( "github.com/minio-io/minio/pkg/drivers/mocks" "github.com/stretchr/testify/mock" - . "gopkg.in/check.v1" + . "github.com/minio-io/check" ) func Test(t *testing.T) { TestingT(t) } diff --git a/pkg/api/config/config_test.go b/pkg/api/config/config_test.go index 8741f9450..0a3084664 100644 --- a/pkg/api/config/config_test.go +++ b/pkg/api/config/config_test.go @@ -23,8 +23,8 @@ import ( "sync" "testing" + . "github.com/minio-io/check" "github.com/minio-io/minio/pkg/utils/crypto/keys" - . "gopkg.in/check.v1" ) type MySuite struct{} diff --git a/pkg/drivers/api_testsuite.go b/pkg/drivers/api_testsuite.go index 942e8eff6..888b9248c 100644 --- a/pkg/drivers/api_testsuite.go +++ b/pkg/drivers/api_testsuite.go @@ -21,7 +21,7 @@ import ( "math/rand" "strconv" - "gopkg.in/check.v1" + "github.com/minio-io/check" "time" ) diff --git a/pkg/drivers/donut/donut_test.go b/pkg/drivers/donut/donut_test.go index 9169726b3..6846eb19a 100644 --- a/pkg/drivers/donut/donut_test.go +++ b/pkg/drivers/donut/donut_test.go @@ -23,7 +23,7 @@ import ( "github.com/minio-io/minio/pkg/drivers" - . "gopkg.in/check.v1" + . "github.com/minio-io/check" ) func Test(t *testing.T) { TestingT(t) } diff --git a/pkg/drivers/file/file_test.go b/pkg/drivers/file/file_test.go index 65da0324e..870b61b1e 100644 --- a/pkg/drivers/file/file_test.go +++ b/pkg/drivers/file/file_test.go @@ -23,7 +23,7 @@ import ( "github.com/minio-io/minio/pkg/drivers" - . "gopkg.in/check.v1" + . "github.com/minio-io/check" ) func Test(t *testing.T) { TestingT(t) } diff --git a/pkg/drivers/memory/memory_test.go b/pkg/drivers/memory/memory_test.go index 29012c52e..375c8bc52 100644 --- a/pkg/drivers/memory/memory_test.go +++ b/pkg/drivers/memory/memory_test.go @@ -21,7 +21,7 @@ import ( "github.com/minio-io/minio/pkg/drivers" - . "gopkg.in/check.v1" + . "github.com/minio-io/check" ) func Test(t *testing.T) { TestingT(t) } diff --git a/pkg/encoding/erasure/cauchy_test.go b/pkg/encoding/erasure/cauchy_test.go index 37f28c74c..3be19cab0 100644 --- a/pkg/encoding/erasure/cauchy_test.go +++ b/pkg/encoding/erasure/cauchy_test.go @@ -20,7 +20,7 @@ import ( "bytes" "testing" - . "gopkg.in/check.v1" + . "github.com/minio-io/check" ) type MySuite struct{} diff --git a/pkg/encoding/erasure/vandermonde_test.go b/pkg/encoding/erasure/vandermonde_test.go index 490830557..914f9c4ed 100644 --- a/pkg/encoding/erasure/vandermonde_test.go +++ b/pkg/encoding/erasure/vandermonde_test.go @@ -19,7 +19,7 @@ package erasure import ( "bytes" - . "gopkg.in/check.v1" + . "github.com/minio-io/check" ) func corruptChunks(chunks [][]byte, errorIndex []int) [][]byte { diff --git a/pkg/storage/donut/donut_test.go b/pkg/storage/donut/donut_test.go index 194a0ad8a..0f982b79f 100644 --- a/pkg/storage/donut/donut_test.go +++ b/pkg/storage/donut/donut_test.go @@ -8,7 +8,7 @@ import ( "testing" "time" - . "gopkg.in/check.v1" + . "github.com/minio-io/check" ) func Test(t *testing.T) { TestingT(t) } diff --git a/pkg/utils/cpu/cpu_test.go b/pkg/utils/cpu/cpu_test.go index 430188d6f..d62da5c17 100644 --- a/pkg/utils/cpu/cpu_test.go +++ b/pkg/utils/cpu/cpu_test.go @@ -23,8 +23,8 @@ import ( "strings" "testing" + . "github.com/minio-io/check" "github.com/minio-io/minio/pkg/utils/cpu" - . "gopkg.in/check.v1" ) func Test(t *testing.T) { TestingT(t) } diff --git a/pkg/utils/crypto/keys/keys_test.go b/pkg/utils/crypto/keys/keys_test.go index fa8faee62..2d7c830c5 100644 --- a/pkg/utils/crypto/keys/keys_test.go +++ b/pkg/utils/crypto/keys/keys_test.go @@ -19,8 +19,8 @@ package keys_test import ( "testing" + . "github.com/minio-io/check" "github.com/minio-io/minio/pkg/utils/crypto/keys" - . "gopkg.in/check.v1" ) func Test(t *testing.T) { TestingT(t) } diff --git a/pkg/utils/crypto/md5/md5_test.go b/pkg/utils/crypto/md5/md5_test.go index ec129d9e6..24b092efa 100644 --- a/pkg/utils/crypto/md5/md5_test.go +++ b/pkg/utils/crypto/md5/md5_test.go @@ -5,8 +5,8 @@ import ( "encoding/hex" "testing" + . "github.com/minio-io/check" "github.com/minio-io/minio/pkg/utils/crypto/md5" - . "gopkg.in/check.v1" ) func Test(t *testing.T) { TestingT(t) } diff --git a/pkg/utils/split/split_test.go b/pkg/utils/split/split_test.go index 6100f9c5b..8b679cfdd 100644 --- a/pkg/utils/split/split_test.go +++ b/pkg/utils/split/split_test.go @@ -24,8 +24,8 @@ import ( "strconv" "testing" + . "github.com/minio-io/check" "github.com/minio-io/minio/pkg/utils/split" - . "gopkg.in/check.v1" ) type MySuite struct{}