Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Commit 271a7d7

Browse files
committed
Try pulling out a few more nonexistent gh paths
1 parent a22be46 commit 271a7d7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

cmd/dep/remove_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func main() {
5252
h.TempFile("src/"+root+"/thing.go", m)
5353
origm := `{
5454
"dependencies": {
55-
"github.com/not/used": {
55+
"notexist.com/other.git": {
5656
"version": "2.0.0"
5757
},
5858
"github.com/Sirupsen/logrus": {
@@ -87,22 +87,22 @@ func main() {
8787
}
8888

8989
h.TempFile("src/"+root+"/manifest.json", origm)
90-
h.Run("remove", "github.com/not/used")
90+
h.Run("remove", "notexist.com/other.git")
9191

9292
manifest = h.ReadManifest()
9393
if manifest != expectedManifest {
9494
t.Fatalf("expected %s, got %s", expectedManifest, manifest)
9595
}
9696

97-
if err := h.DoRun([]string{"remove", "-unused", "github.com/not/used"}); err == nil {
97+
if err := h.DoRun([]string{"remove", "-unused", "notexist.com/other.git"}); err == nil {
9898
t.Fatal("rm with both -unused and arg should have failed")
9999
}
100100

101-
if err := h.DoRun([]string{"remove", "github.com/not/present"}); err == nil {
101+
if err := h.DoRun([]string{"remove", "notexist.com/third.git"}); err == nil {
102102
t.Fatal("rm with arg not in manifest should have failed")
103103
}
104104

105-
if err := h.DoRun([]string{"remove", "github.com/not/used", "github.com/not/present"}); err == nil {
105+
if err := h.DoRun([]string{"remove", "notexist.com/other.git", "notexist.com/third.git"}); err == nil {
106106
t.Fatal("rm with one arg not in manifest should have failed")
107107
}
108108

@@ -111,7 +111,7 @@ func main() {
111111
}
112112

113113
h.TempFile("src/"+root+"/manifest.json", origm)
114-
h.Run("remove", "-force", "github.com/pkg/errors", "github.com/not/used")
114+
h.Run("remove", "-force", "github.com/pkg/errors", "notexist.com/other.git")
115115

116116
manifest = h.ReadManifest()
117117
if manifest != `{

0 commit comments

Comments
 (0)