Skip to content

Commit 1b578ff

Browse files
committed
Run update marker lock unit tests in parallel
1 parent 54e3176 commit 1b578ff

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

internal/pkg/agent/application/upgrade/step_mark_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,6 @@ desired_outcome: true
271271
}
272272

273273
func Test_markUpgradeLocking(t *testing.T) {
274-
275274
type dataDirHookFunc func(t *testing.T, dataDir string)
276275

277276
type args struct {
@@ -372,7 +371,8 @@ func Test_markUpgradeLocking(t *testing.T) {
372371
wantErr: assert.Error,
373372
},
374373
{
375-
name: "Update marker creation should fail if marker is already locked by another process", args: args{
374+
name: "Update marker creation should fail if marker is already locked by another process",
375+
args: args{
376376
agent: newAgent456,
377377
previousAgent: prevAgent123,
378378
action: nil,
@@ -430,6 +430,7 @@ func Test_markUpgradeLocking(t *testing.T) {
430430
}
431431
for _, tt := range tests {
432432
t.Run(tt.name, func(t *testing.T) {
433+
t.Parallel()
433434
tmpDataDir := t.TempDir()
434435
logger, _ := loggertest.New(t.Name())
435436
if tt.beforeUpdateMarkerCreation != nil {

0 commit comments

Comments
 (0)