Skip to content

Commit

Permalink
Remove t.Parallel()
Browse files Browse the repository at this point in the history
  • Loading branch information
Zamony committed Oct 31, 2024
1 parent 80829b4 commit 6c2dc34
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 17 deletions.
4 changes: 0 additions & 4 deletions squll/squll_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import (
)

func TestBuildQuery(t *testing.T) {
t.Parallel()

template := squll.Must(`INSERT INTO scores VALUES ({{argument .Name}}, {{argument .Score}})`)

type UserScore struct {
Expand All @@ -30,8 +28,6 @@ func TestBuildQuery(t *testing.T) {
}

func TestBuildQueryStaticPlaceholder(t *testing.T) {
t.Parallel()

template := squll.Must(
`INSERT INTO names VALUES ({{argument .}})`,
squll.WithQuestionPlaceholder(),
Expand Down
8 changes: 0 additions & 8 deletions sync/hatmap/map_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import (
)

func TestMapSetGet(t *testing.T) {
t.Parallel()

var m hatmap.Map[string, int]
m.Set("a", 1)

Expand Down Expand Up @@ -51,8 +49,6 @@ func TestMapSetGet(t *testing.T) {
}

func TestMapSetDelete(t *testing.T) {
t.Parallel()

m := hatmap.New[string, int](3)
m.Set("a", 1)
m.Set("b", 2)
Expand All @@ -78,8 +74,6 @@ func TestMapSetDelete(t *testing.T) {
}

func TestMapForEach(t *testing.T) {
t.Parallel()

var m hatmap.Map[string, int]
m.Set("a", 1)
m.Set("b", 2)
Expand All @@ -100,8 +94,6 @@ func TestMapForEach(t *testing.T) {
}

func TestMapConcurrent(t *testing.T) {
t.Parallel()

const key = "a"
var m hatmap.Map[string, int]
var wg sync.WaitGroup
Expand Down
3 changes: 0 additions & 3 deletions sync/mutex/mutex_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (
const timeout = 10 * time.Millisecond

func TestMutexContext(t *testing.T) {
t.Parallel()
ctx, cancel := context.WithTimeout(context.Background(), timeout)
t.Cleanup(cancel)

Expand All @@ -39,8 +38,6 @@ func TestMutexContext(t *testing.T) {
}

func TestMutexLock(t *testing.T) {
t.Parallel()

ctx := context.Background()
var mu mutex.RWMutex
if err := mu.TryLock(ctx); err != nil {
Expand Down
2 changes: 0 additions & 2 deletions sync/singleflight/singleflight_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ import (
)

func TestSingleFlight(t *testing.T) {
t.Parallel()

var ncalls int64
var wg sync.WaitGroup
defer wg.Wait()
Expand Down

0 comments on commit 6c2dc34

Please sign in to comment.