Skip to content

Commit

Permalink
fix data race
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlesCheung96 committed Nov 2, 2009
1 parent e3f3ba8 commit 828b78e
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions pkg/election/storage_orm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ func newORMStorageAndMock(t *testing.T) (*ORMStorage, sqlmock.Sqlmock) {
}

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

s, mock := newORMStorageAndMock(t)

mock.ExpectQuery("SELECT * FROM `test` WHERE id = ? LIMIT 1").
Expand All @@ -60,8 +58,6 @@ func TestORMStorageGetEmptyRecord(t *testing.T) {
}

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

s, mock := newORMStorageAndMock(t)

expectedRecord := &Record{
Expand Down Expand Up @@ -90,8 +86,6 @@ func TestORMStorageGetExistingRecord(t *testing.T) {
}

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

s, mock := newORMStorageAndMock(t)

record := &Record{
Expand All @@ -118,8 +112,6 @@ func TestORMStorageInsertRecord(t *testing.T) {
}

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

leaderNotChanged := false
s, mock := newORMStorageAndMock(t)

Expand Down Expand Up @@ -152,8 +144,6 @@ func TestORMStorageUpdateMember(t *testing.T) {
}

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

leaderChanged := true
s, mock := newORMStorageAndMock(t)

Expand Down Expand Up @@ -197,8 +187,6 @@ func TestORMStorageUpdateLeader(t *testing.T) {
}

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

s, mock := newORMStorageAndMock(t)

mock.ExpectBegin()
Expand Down

0 comments on commit 828b78e

Please sign in to comment.