Skip to content

Commit

Permalink
run tests in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
ncode committed Oct 12, 2024
1 parent 919fa57 commit cfee766
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/aclmanager/aclmanager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ var (
)

func TestFindNodes(t *testing.T) {
t.Parallel()
tests := []struct {
name string
mockRoleResp interface{}
Expand Down Expand Up @@ -141,6 +142,7 @@ func TestFindNodes(t *testing.T) {
}

func TestListAcls(t *testing.T) {
t.Parallel()
tests := []struct {
name string
mockResp interface{}
Expand Down Expand Up @@ -215,6 +217,7 @@ func TestListAcls(t *testing.T) {
}

func TestSyncAcls(t *testing.T) {
t.Parallel()
tests := []struct {
name string
sourceAcls []interface{}
Expand Down Expand Up @@ -463,6 +466,7 @@ func TestSyncAcls(t *testing.T) {
}

func TestCurrentFunction(t *testing.T) {
t.Parallel()
tests := []struct {
name string
mockRoleResp interface{}
Expand Down Expand Up @@ -586,6 +590,7 @@ func TestPrimary(t *testing.T) {
}

func TestLoop(t *testing.T) {
t.Parallel()
redisClient, mock := redismock.NewClientMock()
aclManager := &AclManager{
RedisClient: redisClient,
Expand Down Expand Up @@ -680,6 +685,7 @@ func TestSaveAclFile(t *testing.T) {
}

func TestLoadAclFile(t *testing.T) {
t.Parallel()
tests := []struct {
name string
wantErr bool
Expand Down

0 comments on commit cfee766

Please sign in to comment.