simplify testing

This commit is contained in:
v2ray
2016-05-24 21:55:46 +02:00
parent 3582b9d869
commit fc63f0432c
99 changed files with 726 additions and 817 deletions
+2 -3
View File
@@ -3,12 +3,11 @@ package git
import (
"testing"
v2testing "github.com/v2ray/v2ray-core/testing"
"github.com/v2ray/v2ray-core/testing/assert"
)
func TestRevParse(t *testing.T) {
v2testing.Current(t)
assert := assert.On(t)
rev, err := RevParse("HEAD")
assert.Error(err).IsNil()
@@ -16,7 +15,7 @@ func TestRevParse(t *testing.T) {
}
func TestRepoVersion(t *testing.T) {
v2testing.Current(t)
assert := assert.On(t)
version, err := RepoVersionHead()
assert.Error(err).IsNil()