diff options
| author | Shulhan <ms@kilabit.info> | 2018-05-29 06:18:46 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2018-05-29 06:18:46 +0700 |
| commit | 47ff3edb37ac53d5bdbffcb02807d8bb255c5b99 (patch) | |
| tree | 12762da5256ab2f43c7b0eda657587f73936f0bd /package_test.go | |
| parent | e8593ded764fd5d721b08a15c4bd65006f5de2a9 (diff) | |
| download | beku-47ff3edb37ac53d5bdbffcb02807d8bb255c5b99.tar.xz | |
Fetch new package commits before updating version
Diffstat (limited to 'package_test.go')
| -rw-r--r-- | package_test.go | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/package_test.go b/package_test.go index cdac7f4..3361294 100644 --- a/package_test.go +++ b/package_test.go @@ -573,13 +573,14 @@ func testUpdate(t *testing.T) { isTag: true, }, expPkg: &Package{ - vcs: VCSModeGit, - ImportPath: testGitRepo, - FullPath: filepath.Join(testEnv.dirSrc, testGitRepo), - RemoteName: gitDefRemoteName, - RemoteURL: "git@github.com:shuLhan/beku_test.git", - Version: "v0.1.0", - isTag: true, + vcs: VCSModeGit, + ImportPath: testGitRepo, + FullPath: filepath.Join(testEnv.dirSrc, testGitRepo), + RemoteName: gitDefRemoteName, + RemoteURL: "git@github.com:shuLhan/beku_test.git", + Version: "v0.1.0", + VersionNext: "c9f69fb", + isTag: true, }, }, { desc: "Update version back", @@ -600,13 +601,14 @@ func testUpdate(t *testing.T) { isTag: true, }, expPkg: &Package{ - vcs: VCSModeGit, - ImportPath: testGitRepo, - FullPath: filepath.Join(testEnv.dirSrc, testGitRepo), - RemoteName: gitDefRemoteName, - RemoteURL: "git@github.com:shuLhan/beku_test.git", - Version: "c9f69fb", - isTag: false, + vcs: VCSModeGit, + ImportPath: testGitRepo, + FullPath: filepath.Join(testEnv.dirSrc, testGitRepo), + RemoteName: gitDefRemoteName, + RemoteURL: "git@github.com:shuLhan/beku_test.git", + Version: "c9f69fb", + VersionNext: "c9f69fb", + isTag: false, }, }} @@ -630,7 +632,7 @@ func testUpdate(t *testing.T) { t.Log("stdout:", stdout) } - test.Assert(t, "current pkg", c.expPkg, c.curPkg, true) + test.Assert(t, "current pkg", *c.expPkg, *c.curPkg, true) } } |
