зеркало из https://github.com/golang/dep.git
Revert "Merge pull request #1301 from jmank88/par_tests"
This reverts commitdf32e15817
, reversing changes made to59b9d9ff7d
.
This commit is contained in:
Родитель
bf8f29518f
Коммит
19eca01a05
|
@ -139,7 +139,6 @@ func TestSourceInit(t *testing.T) {
|
|||
if testing.Short() {
|
||||
t.Skip("Skipping project manager init test in short mode")
|
||||
}
|
||||
t.Parallel()
|
||||
|
||||
cpath, err := ioutil.TempDir("", "smcache")
|
||||
if err != nil {
|
||||
|
@ -281,7 +280,6 @@ func TestDefaultBranchAssignment(t *testing.T) {
|
|||
if testing.Short() {
|
||||
t.Skip("Skipping default branch assignment test in short mode")
|
||||
}
|
||||
t.Parallel()
|
||||
|
||||
sm, clean := mkNaiveSM(t)
|
||||
defer clean()
|
||||
|
@ -407,7 +405,6 @@ func TestSourceCreationCounts(t *testing.T) {
|
|||
if testing.Short() {
|
||||
t.Skip("Skipping slow test in short mode")
|
||||
}
|
||||
t.Parallel()
|
||||
|
||||
fixtures := map[string]sourceCreationTestFixture{
|
||||
"gopkgin uniqueness": {
|
||||
|
@ -450,7 +447,6 @@ func TestGetSources(t *testing.T) {
|
|||
if testing.Short() {
|
||||
t.Skip("Skipping source setup test in short mode")
|
||||
}
|
||||
t.Parallel()
|
||||
requiresBins(t, "git", "hg", "bzr")
|
||||
|
||||
sm, clean := mkNaiveSM(t)
|
||||
|
@ -517,7 +513,6 @@ func TestFSCaseSensitivityConvergesSources(t *testing.T) {
|
|||
if testing.Short() {
|
||||
t.Skip("Skipping slow test in short mode")
|
||||
}
|
||||
t.Parallel()
|
||||
|
||||
f := func(name string, pi1, pi2 ProjectIdentifier) {
|
||||
t.Run(name, func(t *testing.T) {
|
||||
|
@ -576,7 +571,6 @@ func TestGetInfoListVersionsOrdering(t *testing.T) {
|
|||
if testing.Short() {
|
||||
t.Skip("Skipping slow test in short mode")
|
||||
}
|
||||
t.Parallel()
|
||||
|
||||
sm, clean := mkNaiveSM(t)
|
||||
defer clean()
|
||||
|
@ -681,7 +675,6 @@ func TestMultiFetchThreadsafe(t *testing.T) {
|
|||
if testing.Short() {
|
||||
t.Skip("Skipping slow test in short mode")
|
||||
}
|
||||
t.Parallel()
|
||||
|
||||
projects := []ProjectIdentifier{
|
||||
mkPI("github.com/sdboyer/gps"),
|
||||
|
@ -789,7 +782,6 @@ func TestListVersionsRacey(t *testing.T) {
|
|||
if testing.Short() {
|
||||
t.Skip("Skipping slow test in short mode")
|
||||
}
|
||||
t.Parallel()
|
||||
|
||||
sm, clean := mkNaiveSM(t)
|
||||
defer clean()
|
||||
|
@ -945,7 +937,6 @@ func TestUnreachableSource(t *testing.T) {
|
|||
if testing.Short() {
|
||||
t.Skip("Skipping slow test in short mode")
|
||||
}
|
||||
t.Parallel()
|
||||
|
||||
sm, clean := mkNaiveSM(t)
|
||||
defer clean()
|
||||
|
|
|
@ -15,8 +15,6 @@ import (
|
|||
)
|
||||
|
||||
func TestBoltCacheTimeout(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
const root = "example.com/test"
|
||||
cpath, err := ioutil.TempDir("", "singlesourcecache")
|
||||
if err != nil {
|
||||
|
|
|
@ -18,8 +18,6 @@ import (
|
|||
)
|
||||
|
||||
func Test_singleSourceCache(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
newMem := func(*testing.T, string, string) (singleSourceCache, func() error) {
|
||||
return newMemoryCache(), func() error { return nil }
|
||||
}
|
||||
|
@ -72,8 +70,6 @@ type singleSourceCacheTest struct {
|
|||
// run tests singleSourceCache methods of caches returned by test.newCache.
|
||||
// For test.persistent caches, test.newCache is periodically called mid-test to ensure persistence.
|
||||
func (test singleSourceCacheTest) run(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
const root = "example.com/test"
|
||||
cpath, err := ioutil.TempDir("", "singlesourcecache")
|
||||
if err != nil {
|
||||
|
|
|
@ -21,7 +21,6 @@ import (
|
|||
|
||||
// Parent test that executes all the slow vcs interaction tests in parallel.
|
||||
func TestSlowVcs(t *testing.T) {
|
||||
t.Parallel()
|
||||
t.Run("write-deptree", testWriteDepTree)
|
||||
t.Run("source-gateway", testSourceGateway)
|
||||
t.Run("bzr-repo", testBzrRepo)
|
||||
|
|
|
@ -17,7 +17,6 @@ func TestVCSVersion(t *testing.T) {
|
|||
}
|
||||
|
||||
h := test.NewHelper(t)
|
||||
h.Parallel()
|
||||
defer h.Cleanup()
|
||||
requiresBins(t, "git")
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче