From 725d5c8f5319611d7fcf248132144a1ba1298c84 Mon Sep 17 00:00:00 2001 From: Jacky Chiu Date: Tue, 26 Dec 2017 11:32:56 -0500 Subject: [PATCH] Inline master branch constraint --- cmd/dep/status_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/dep/status_test.go b/cmd/dep/status_test.go index 549c87b5..2c83afd8 100644 --- a/cmd/dep/status_test.go +++ b/cmd/dep/status_test.go @@ -305,7 +305,6 @@ func TestCollectConstraints(t *testing.T) { ver1, _ := gps.NewSemverConstraintIC("v1.0.0") ver08, _ := gps.NewSemverConstraintIC("v0.8.0") ver2, _ := gps.NewSemverConstraintIC("v2.0.0") - master := gps.NewBranch("master") cases := []struct { name string @@ -396,7 +395,7 @@ func TestCollectConstraints(t *testing.T) { }, wantConstraints: constraintsCollection{ "github.com/boltdb/bolt": []projectConstraint{ - {"github.com/JackyChiu/dep-applicable-constraints", master}, + {"github.com/JackyChiu/dep-applicable-constraints", gps.NewBranch("master")}, }, "github.com/sdboyer/deptest": []projectConstraint{ {"github.com/JackyChiu/dep-applicable-constraints", ver08},