Skip to content

Commit afea030

Browse files
barakmichtstirrat15
authored andcommitted
chore(integrationtesting): remove t.Parallel test calls
1 parent cf317c7 commit afea030

File tree

4 files changed

+0
-10
lines changed

4 files changed

+0
-10
lines changed

internal/services/integrationtesting/consistency_datastore_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ func TestConsistencyPerDatastore(t *testing.T) {
4040
t.Run(engineID, func(t *testing.T) {
4141
// FIXME errors arise if spanner is run in parallel
4242
if engineID != "spanner" {
43-
t.Parallel()
4443
}
4544
for _, filePath := range consistencyTestFiles {
4645
rde := testdatastore.RunDatastoreEngine(t, engineID)

internal/services/integrationtesting/consistency_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,20 +45,17 @@ const testTimedelta = 1 * time.Second
4545
// both real-world schemas, as well as the full set of hand-constructed corner
4646
// cases so that the system can be fully exercised.
4747
func TestConsistency(t *testing.T) {
48-
t.Parallel()
4948

5049
// List all the defined consistency test files.
5150
consistencyTestFiles, err := consistencytestutil.ListTestConfigs()
5251
require.NoError(t, err)
5352

5453
for _, filePath := range consistencyTestFiles {
5554
t.Run(path.Base(filePath), func(t *testing.T) {
56-
t.Parallel()
5755
for _, dispatcherKind := range []string{"local", "caching"} {
5856
t.Run(dispatcherKind, func(t *testing.T) {
5957
for _, chunkSize := range []uint16{5, 10} {
6058
t.Run(fmt.Sprintf("chunk-size-%d", chunkSize), func(t *testing.T) {
61-
t.Parallel()
6259
runConsistencyTestSuiteForFile(t, filePath, dispatcherKind == "caching", chunkSize)
6360
})
6461
}

internal/services/integrationtesting/ops_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ func (dr deleteCaveatedRelationship) Execute(tester opsTester) error {
120120
}
121121

122122
func TestSchemaAndRelationshipsOperations(t *testing.T) {
123-
t.Parallel()
124123

125124
tcs := []schemaTestCase{
126125
// Test: write a basic, valid schema.
@@ -752,7 +751,6 @@ func TestSchemaAndRelationshipsOperations(t *testing.T) {
752751

753752
for _, tc := range tcs {
754753
t.Run(tc.name, func(t *testing.T) {
755-
t.Parallel()
756754
for _, testerName := range []string{"v1"} {
757755
t.Run(testerName, func(t *testing.T) {
758756
conn, cleanup, _, _ := testserver.NewTestServer(require.New(t), 0, memdb.DisableGC, false, tf.EmptyDatastore)

internal/services/integrationtesting/query_plan_consistency_test.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ import (
2929
)
3030

3131
func TestQueryPlanConsistency(t *testing.T) { // nolint:tparallel
32-
t.Parallel()
3332
consistencyTestFiles, err := consistencytestutil.ListTestConfigs()
3433
require.NoError(t, err)
3534
for _, filePath := range consistencyTestFiles {
@@ -195,7 +194,6 @@ func runQueryPlanLookupResources(t *testing.T, handle *queryPlanConsistencyHandl
195194
// that are accessible to the subject.
196195
testQueryPlanForEachResourceType(t, handle.populated, "validate_lookup_resources",
197196
func(t *testing.T, resourceRelation tuple.RelationReference) {
198-
t.Parallel()
199197
for _, subject := range accessibilitySet.AllSubjectsNoWildcards() {
200198
t.Run(tuple.StringONR(subject), func(t *testing.T) {
201199
accessibleResources := accessibilitySet.LookupAccessibleResources(resourceRelation, subject)
@@ -245,7 +243,6 @@ func runQueryPlanLookupSubjects(t *testing.T, handle *queryPlanConsistencyHandle
245243
// that have access to the resource.
246244
testQueryPlanForEachResourceType(t, handle.populated, "validate_lookup_subjects",
247245
func(t *testing.T, resourceRelation tuple.RelationReference) {
248-
t.Parallel()
249246
for _, resource := range accessibilitySet.AllResourcesNoWildcards() {
250247
// Only test resources that match the current resource type
251248
if resource.ObjectType != resourceRelation.ObjectType || resource.Relation != resourceRelation.Relation {
@@ -323,7 +320,6 @@ func testQueryPlanForEachResourceType(
323320
// environment flags are set. This test should be removed when those flags are removed and
324321
// the corresponding tests run unconditionally.
325322
func TestAccessibilitySetMethods(t *testing.T) {
326-
t.Parallel()
327323
require := require.New(t)
328324

329325
ds, err := dsfortesting.NewMemDBDatastoreForTesting(t, 0, testTimedelta, memdb.DisableGC)

0 commit comments

Comments
 (0)