Skip to content

Commit 2ca5f35

Browse files
committed
fix(deisctl): unit test should also use main version package
1 parent 7412069 commit 2ca5f35

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

deisctl/deisctl_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import (
66
"os"
77
"strings"
88
"testing"
9+
10+
"github.com/deis/deis/version"
911
)
1012

1113
// commandOutput returns stdout for a deisctl command line as a string.
@@ -54,7 +56,7 @@ func TestUsage(t *testing.T) {
5456
func TestVersion(t *testing.T) {
5557
args := []string{"--version"}
5658
out := commandOutput(args)
57-
if !strings.HasPrefix(out, Version) {
59+
if !strings.HasPrefix(out, version.Version) {
5860
t.Error(out)
5961
}
6062
}

0 commit comments

Comments
 (0)