From f717e9b560d59aeb49d92af8a84a172d22fab145 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Sat, 18 Jul 2015 11:31:01 -0700 Subject: [PATCH] Migrate to upstream gopkg.in/check.v1 --- Godeps/Godeps.json | 10 +- .../github.com/minio/check/printer_test.go | 110 ------------------ .../check => gopkg.in/check.v1}/.gitignore | 0 .../minio/check => gopkg.in/check.v1}/LICENSE | 0 .../check => gopkg.in/check.v1}/README.md | 4 +- .../minio/check => gopkg.in/check.v1}/TODO | 0 .../check => gopkg.in/check.v1}/benchmark.go | 0 .../check.v1}/benchmark_test.go | 2 +- .../check.v1}/bootstrap_test.go | 2 +- .../check => gopkg.in/check.v1}/check.go | 0 .../check => gopkg.in/check.v1}/check_test.go | 2 +- .../check => gopkg.in/check.v1}/checkers.go | 0 .../check.v1}/checkers_test.go | 2 +- .../check.v1}/export_test.go | 0 .../check.v1}/fixture_test.go | 2 +- .../check.v1}/foundation_test.go | 2 +- .../check => gopkg.in/check.v1}/helpers.go | 0 .../check.v1}/helpers_test.go | 2 +- .../check => gopkg.in/check.v1}/printer.go | 0 .../src/gopkg.in/check.v1/printer_test.go | 104 +++++++++++++++++ .../minio/check => gopkg.in/check.v1}/run.go | 0 .../check => gopkg.in/check.v1}/run_test.go | 6 +- cat_test.go | 2 +- cmd-ls.go | 2 +- cmd_test.go | 2 +- diff_test.go | 2 +- ls_test.go | 2 +- mb_access_test.go | 2 +- pkg/client/client_test.go | 2 +- pkg/client/fs/fs_test.go | 2 +- pkg/client/s3/s3_test.go | 2 +- pkg/console/console_test.go | 2 +- pkg/quick/quick_test.go | 2 +- session_test.go | 2 +- 34 files changed, 133 insertions(+), 139 deletions(-) delete mode 100644 Godeps/_workspace/src/github.com/minio/check/printer_test.go rename Godeps/_workspace/src/{github.com/minio/check => gopkg.in/check.v1}/.gitignore (100%) rename Godeps/_workspace/src/{github.com/minio/check => gopkg.in/check.v1}/LICENSE (100%) rename Godeps/_workspace/src/{github.com/minio/check => gopkg.in/check.v1}/README.md (78%) rename Godeps/_workspace/src/{github.com/minio/check => gopkg.in/check.v1}/TODO (100%) rename Godeps/_workspace/src/{github.com/minio/check => gopkg.in/check.v1}/benchmark.go (100%) rename Godeps/_workspace/src/{github.com/minio/check => gopkg.in/check.v1}/benchmark_test.go (98%) rename Godeps/_workspace/src/{github.com/minio/check => gopkg.in/check.v1}/bootstrap_test.go (98%) rename Godeps/_workspace/src/{github.com/minio/check => gopkg.in/check.v1}/check.go (100%) rename Godeps/_workspace/src/{github.com/minio/check => gopkg.in/check.v1}/check_test.go (99%) rename Godeps/_workspace/src/{github.com/minio/check => gopkg.in/check.v1}/checkers.go (100%) rename Godeps/_workspace/src/{github.com/minio/check => gopkg.in/check.v1}/checkers_test.go (99%) rename Godeps/_workspace/src/{github.com/minio/check => gopkg.in/check.v1}/export_test.go (100%) rename Godeps/_workspace/src/{github.com/minio/check => gopkg.in/check.v1}/fixture_test.go (99%) rename Godeps/_workspace/src/{github.com/minio/check => gopkg.in/check.v1}/foundation_test.go (99%) rename Godeps/_workspace/src/{github.com/minio/check => gopkg.in/check.v1}/helpers.go (100%) rename Godeps/_workspace/src/{github.com/minio/check => gopkg.in/check.v1}/helpers_test.go (99%) rename Godeps/_workspace/src/{github.com/minio/check => gopkg.in/check.v1}/printer.go (100%) create mode 100644 Godeps/_workspace/src/gopkg.in/check.v1/printer_test.go rename Godeps/_workspace/src/{github.com/minio/check => gopkg.in/check.v1}/run.go (100%) rename Godeps/_workspace/src/{github.com/minio/check => gopkg.in/check.v1}/run_test.go (99%) diff --git a/Godeps/Godeps.json b/Godeps/Godeps.json index 755b139a..6f35ecf0 100644 --- a/Godeps/Godeps.json +++ b/Godeps/Godeps.json @@ -1,6 +1,6 @@ { "ImportPath": "github.com/minio/mc", - "GoVersion": "go1.4", + "GoVersion": "go1.4.2", "Packages": [ "./..." ], @@ -17,10 +17,6 @@ "ImportPath": "github.com/fatih/structs", "Rev": "c00d27128bb88e9c1adab1a53cda9c72c6d1ff9b" }, - { - "ImportPath": "github.com/minio/check", - "Rev": "67f8c16c6c27bb03c82e41c2be533ace00035ab4" - }, { "ImportPath": "github.com/minio/cli", "Comment": "1.2.0-112-g823349c", @@ -47,6 +43,10 @@ { "ImportPath": "github.com/shiena/ansicolor", "Rev": "8368d3b31cf6f2c2464c7a91675342c9a0ac6658" + }, + { + "ImportPath": "gopkg.in/check.v1", + "Rev": "64131543e7896d5bcc6bd5a76287eb75ea96c673" } ] } diff --git a/Godeps/_workspace/src/github.com/minio/check/printer_test.go b/Godeps/_workspace/src/github.com/minio/check/printer_test.go deleted file mode 100644 index 885ea334..00000000 --- a/Godeps/_workspace/src/github.com/minio/check/printer_test.go +++ /dev/null @@ -1,110 +0,0 @@ -package check_test - -import ( - . "github.com/minio/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/github.com/minio/check/.gitignore b/Godeps/_workspace/src/gopkg.in/check.v1/.gitignore similarity index 100% rename from Godeps/_workspace/src/github.com/minio/check/.gitignore rename to Godeps/_workspace/src/gopkg.in/check.v1/.gitignore diff --git a/Godeps/_workspace/src/github.com/minio/check/LICENSE b/Godeps/_workspace/src/gopkg.in/check.v1/LICENSE similarity index 100% rename from Godeps/_workspace/src/github.com/minio/check/LICENSE rename to Godeps/_workspace/src/gopkg.in/check.v1/LICENSE diff --git a/Godeps/_workspace/src/github.com/minio/check/README.md b/Godeps/_workspace/src/gopkg.in/check.v1/README.md similarity index 78% rename from Godeps/_workspace/src/github.com/minio/check/README.md rename to Godeps/_workspace/src/gopkg.in/check.v1/README.md index 3cf695e5..0ca9e572 100644 --- a/Godeps/_workspace/src/github.com/minio/check/README.md +++ b/Godeps/_workspace/src/gopkg.in/check.v1/README.md @@ -3,11 +3,11 @@ Instructions Install the package with: - go get github.com/minio/check + go get gopkg.in/check.v1 Import it with: - import "github.com/minio/check" + import "gopkg.in/check.v1" and use _check_ as the package name inside the code. diff --git a/Godeps/_workspace/src/github.com/minio/check/TODO b/Godeps/_workspace/src/gopkg.in/check.v1/TODO similarity index 100% rename from Godeps/_workspace/src/github.com/minio/check/TODO rename to Godeps/_workspace/src/gopkg.in/check.v1/TODO diff --git a/Godeps/_workspace/src/github.com/minio/check/benchmark.go b/Godeps/_workspace/src/gopkg.in/check.v1/benchmark.go similarity index 100% rename from Godeps/_workspace/src/github.com/minio/check/benchmark.go rename to Godeps/_workspace/src/gopkg.in/check.v1/benchmark.go diff --git a/Godeps/_workspace/src/github.com/minio/check/benchmark_test.go b/Godeps/_workspace/src/gopkg.in/check.v1/benchmark_test.go similarity index 98% rename from Godeps/_workspace/src/github.com/minio/check/benchmark_test.go rename to Godeps/_workspace/src/gopkg.in/check.v1/benchmark_test.go index b35dbb6f..4dd827c1 100644 --- a/Godeps/_workspace/src/github.com/minio/check/benchmark_test.go +++ b/Godeps/_workspace/src/gopkg.in/check.v1/benchmark_test.go @@ -3,8 +3,8 @@ package check_test import ( - . "github.com/minio/check" "time" + . "gopkg.in/check.v1" ) var benchmarkS = Suite(&BenchmarkS{}) diff --git a/Godeps/_workspace/src/github.com/minio/check/bootstrap_test.go b/Godeps/_workspace/src/gopkg.in/check.v1/bootstrap_test.go similarity index 98% rename from Godeps/_workspace/src/github.com/minio/check/bootstrap_test.go rename to Godeps/_workspace/src/gopkg.in/check.v1/bootstrap_test.go index d1d1b451..e55f327c 100644 --- a/Godeps/_workspace/src/github.com/minio/check/bootstrap_test.go +++ b/Godeps/_workspace/src/gopkg.in/check.v1/bootstrap_test.go @@ -14,7 +14,7 @@ package check_test import ( "fmt" - "github.com/minio/check" + "gopkg.in/check.v1" "strings" ) diff --git a/Godeps/_workspace/src/github.com/minio/check/check.go b/Godeps/_workspace/src/gopkg.in/check.v1/check.go similarity index 100% rename from Godeps/_workspace/src/github.com/minio/check/check.go rename to Godeps/_workspace/src/gopkg.in/check.v1/check.go diff --git a/Godeps/_workspace/src/github.com/minio/check/check_test.go b/Godeps/_workspace/src/gopkg.in/check.v1/check_test.go similarity index 99% rename from Godeps/_workspace/src/github.com/minio/check/check_test.go rename to Godeps/_workspace/src/gopkg.in/check.v1/check_test.go index 4c087b74..871b3252 100644 --- a/Godeps/_workspace/src/github.com/minio/check/check_test.go +++ b/Godeps/_workspace/src/gopkg.in/check.v1/check_test.go @@ -12,7 +12,7 @@ import ( "testing" "time" - "github.com/minio/check" + "gopkg.in/check.v1" ) // We count the number of suites run at least to get a vague hint that the diff --git a/Godeps/_workspace/src/github.com/minio/check/checkers.go b/Godeps/_workspace/src/gopkg.in/check.v1/checkers.go similarity index 100% rename from Godeps/_workspace/src/github.com/minio/check/checkers.go rename to Godeps/_workspace/src/gopkg.in/check.v1/checkers.go diff --git a/Godeps/_workspace/src/github.com/minio/check/checkers_test.go b/Godeps/_workspace/src/gopkg.in/check.v1/checkers_test.go similarity index 99% rename from Godeps/_workspace/src/github.com/minio/check/checkers_test.go rename to Godeps/_workspace/src/gopkg.in/check.v1/checkers_test.go index 9bdf5c62..5c697474 100644 --- a/Godeps/_workspace/src/github.com/minio/check/checkers_test.go +++ b/Godeps/_workspace/src/gopkg.in/check.v1/checkers_test.go @@ -2,7 +2,7 @@ package check_test import ( "errors" - "github.com/minio/check" + "gopkg.in/check.v1" "reflect" "runtime" ) diff --git a/Godeps/_workspace/src/github.com/minio/check/export_test.go b/Godeps/_workspace/src/gopkg.in/check.v1/export_test.go similarity index 100% rename from Godeps/_workspace/src/github.com/minio/check/export_test.go rename to Godeps/_workspace/src/gopkg.in/check.v1/export_test.go diff --git a/Godeps/_workspace/src/github.com/minio/check/fixture_test.go b/Godeps/_workspace/src/gopkg.in/check.v1/fixture_test.go similarity index 99% rename from Godeps/_workspace/src/github.com/minio/check/fixture_test.go rename to Godeps/_workspace/src/gopkg.in/check.v1/fixture_test.go index 2ecad126..2bff9e16 100644 --- a/Godeps/_workspace/src/github.com/minio/check/fixture_test.go +++ b/Godeps/_workspace/src/gopkg.in/check.v1/fixture_test.go @@ -3,7 +3,7 @@ package check_test import ( - . "github.com/minio/check" + . "gopkg.in/check.v1" ) // ----------------------------------------------------------------------- diff --git a/Godeps/_workspace/src/github.com/minio/check/foundation_test.go b/Godeps/_workspace/src/gopkg.in/check.v1/foundation_test.go similarity index 99% rename from Godeps/_workspace/src/github.com/minio/check/foundation_test.go rename to Godeps/_workspace/src/gopkg.in/check.v1/foundation_test.go index 0336195f..8ecf7915 100644 --- a/Godeps/_workspace/src/github.com/minio/check/foundation_test.go +++ b/Godeps/_workspace/src/gopkg.in/check.v1/foundation_test.go @@ -8,7 +8,7 @@ package check_test import ( "fmt" - "github.com/minio/check" + "gopkg.in/check.v1" "log" "os" "regexp" diff --git a/Godeps/_workspace/src/github.com/minio/check/helpers.go b/Godeps/_workspace/src/gopkg.in/check.v1/helpers.go similarity index 100% rename from Godeps/_workspace/src/github.com/minio/check/helpers.go rename to Godeps/_workspace/src/gopkg.in/check.v1/helpers.go diff --git a/Godeps/_workspace/src/github.com/minio/check/helpers_test.go b/Godeps/_workspace/src/gopkg.in/check.v1/helpers_test.go similarity index 99% rename from Godeps/_workspace/src/github.com/minio/check/helpers_test.go rename to Godeps/_workspace/src/gopkg.in/check.v1/helpers_test.go index 9bb0986a..4baa656b 100644 --- a/Godeps/_workspace/src/github.com/minio/check/helpers_test.go +++ b/Godeps/_workspace/src/gopkg.in/check.v1/helpers_test.go @@ -4,7 +4,7 @@ package check_test import ( - "github.com/minio/check" + "gopkg.in/check.v1" "os" "reflect" "runtime" diff --git a/Godeps/_workspace/src/github.com/minio/check/printer.go b/Godeps/_workspace/src/gopkg.in/check.v1/printer.go similarity index 100% rename from Godeps/_workspace/src/github.com/minio/check/printer.go rename to Godeps/_workspace/src/gopkg.in/check.v1/printer.go diff --git a/Godeps/_workspace/src/gopkg.in/check.v1/printer_test.go b/Godeps/_workspace/src/gopkg.in/check.v1/printer_test.go new file mode 100644 index 00000000..538b2d52 --- /dev/null +++ b/Godeps/_workspace/src/gopkg.in/check.v1/printer_test.go @@ -0,0 +1,104 @@ +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/Godeps/_workspace/src/github.com/minio/check/run.go b/Godeps/_workspace/src/gopkg.in/check.v1/run.go similarity index 100% rename from Godeps/_workspace/src/github.com/minio/check/run.go rename to Godeps/_workspace/src/gopkg.in/check.v1/run.go diff --git a/Godeps/_workspace/src/github.com/minio/check/run_test.go b/Godeps/_workspace/src/gopkg.in/check.v1/run_test.go similarity index 99% rename from Godeps/_workspace/src/github.com/minio/check/run_test.go rename to Godeps/_workspace/src/gopkg.in/check.v1/run_test.go index abd7c580..f41fffc3 100644 --- a/Godeps/_workspace/src/github.com/minio/check/run_test.go +++ b/Godeps/_workspace/src/gopkg.in/check.v1/run_test.go @@ -4,7 +4,7 @@ package check_test import ( "errors" - . "github.com/minio/check" + . "gopkg.in/check.v1" "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/cat_test.go b/cat_test.go index 583e0f90..1f7433e9 100644 --- a/cat_test.go +++ b/cat_test.go @@ -22,7 +22,7 @@ import ( "os" "path/filepath" - . "github.com/minio/check" + . "gopkg.in/check.v1" ) func (s *CmdTestSuite) TestCatCmd(c *C) { diff --git a/cmd-ls.go b/cmd-ls.go index d91fe5cf..2d639bc9 100644 --- a/cmd-ls.go +++ b/cmd-ls.go @@ -99,7 +99,7 @@ func runListCmd(ctx *cli.Context) { newTargetURL := stripRecursiveURL(targetURL) err = doListCmd(newTargetURL, isURLRecursive(targetURL)) if err != nil { - console.Fatalln("Failed to list : %s. %s\n", targetURL, err) + console.Fatalf("Failed to list : %s. %s\n", targetURL, err) } } } diff --git a/cmd_test.go b/cmd_test.go index bbf6f666..1346d9bd 100644 --- a/cmd_test.go +++ b/cmd_test.go @@ -28,7 +28,7 @@ import ( "net/http/httptest" - . "github.com/minio/check" + . "gopkg.in/check.v1" "github.com/minio/mc/pkg/quick" ) diff --git a/diff_test.go b/diff_test.go index 6981d5db..a4bb10fe 100644 --- a/diff_test.go +++ b/diff_test.go @@ -23,7 +23,7 @@ import ( "path/filepath" "strconv" - . "github.com/minio/check" + . "gopkg.in/check.v1" ) func (s *CmdTestSuite) TestDiffObjects(c *C) { diff --git a/ls_test.go b/ls_test.go index 054b4188..d9e4341e 100644 --- a/ls_test.go +++ b/ls_test.go @@ -23,7 +23,7 @@ import ( "path/filepath" "strconv" - . "github.com/minio/check" + . "gopkg.in/check.v1" ) func (s *CmdTestSuite) TestLSCmd(c *C) { diff --git a/mb_access_test.go b/mb_access_test.go index 7548da44..e6934cc2 100644 --- a/mb_access_test.go +++ b/mb_access_test.go @@ -21,7 +21,7 @@ import ( "os" "path/filepath" - . "github.com/minio/check" + . "gopkg.in/check.v1" ) func (s *CmdTestSuite) TestMbAndAccessCmd(c *C) { diff --git a/pkg/client/client_test.go b/pkg/client/client_test.go index 1163a4ab..6862ca89 100644 --- a/pkg/client/client_test.go +++ b/pkg/client/client_test.go @@ -19,7 +19,7 @@ package client import ( "testing" - . "github.com/minio/check" + . "gopkg.in/check.v1" ) func Test(t *testing.T) { TestingT(t) } diff --git a/pkg/client/fs/fs_test.go b/pkg/client/fs/fs_test.go index 1d56c52d..bcbc91ee 100644 --- a/pkg/client/fs/fs_test.go +++ b/pkg/client/fs/fs_test.go @@ -24,7 +24,7 @@ import ( "path/filepath" "testing" - . "github.com/minio/check" + . "gopkg.in/check.v1" "github.com/minio/mc/pkg/client" ) diff --git a/pkg/client/s3/s3_test.go b/pkg/client/s3/s3_test.go index eb2a6c15..bc208512 100644 --- a/pkg/client/s3/s3_test.go +++ b/pkg/client/s3/s3_test.go @@ -26,7 +26,7 @@ import ( "testing" "time" - . "github.com/minio/check" + . "gopkg.in/check.v1" ) type bucketHandler struct { diff --git a/pkg/console/console_test.go b/pkg/console/console_test.go index cde95654..50d71ede 100644 --- a/pkg/console/console_test.go +++ b/pkg/console/console_test.go @@ -19,7 +19,7 @@ package console import ( "testing" - . "github.com/minio/check" + . "gopkg.in/check.v1" ) func Test(t *testing.T) { TestingT(t) } diff --git a/pkg/quick/quick_test.go b/pkg/quick/quick_test.go index 3140626f..84af748d 100644 --- a/pkg/quick/quick_test.go +++ b/pkg/quick/quick_test.go @@ -22,7 +22,7 @@ import ( "os" "testing" - . "github.com/minio/check" + . "gopkg.in/check.v1" ) func Test(t *testing.T) { TestingT(t) } diff --git a/session_test.go b/session_test.go index c34cf6f5..ff1a3acd 100644 --- a/session_test.go +++ b/session_test.go @@ -19,7 +19,7 @@ package main import ( "regexp" - . "github.com/minio/check" + . "gopkg.in/check.v1" ) func (s *CmdTestSuite) TestValidSessionID(c *C) {