Skip to content

Commit 138344e

Browse files
committed
fix ci error
Signed-off-by: zhaque44 <[email protected]>
1 parent f02c3ab commit 138344e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

internal/utils/utils_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
)
99

1010
func TestTruncateString(t *testing.T) {
11+
t.Parallel() // Enable parallel execution for the top-level test
1112
tests := []struct {
1213
name string
1314
input string
@@ -30,6 +31,7 @@ func TestTruncateString(t *testing.T) {
3031
}
3132

3233
func TestUpsertEnvironmentStatus(t *testing.T) {
34+
t.Parallel() // Enable parallel execution for the top-level test
3335
tests := []struct {
3436
name string
3537
initial []promoterv1alpha1.EnvironmentStatus
@@ -58,10 +60,7 @@ func TestUpsertEnvironmentStatus(t *testing.T) {
5860

5961
for _, tt := range tests {
6062
t.Run(tt.name, func(t *testing.T) {
61-
// Call the function under test
6263
result := UpsertEnvironmentStatus(tt.initial, tt.insert)
63-
64-
// Assert the result matches the expected value using testify assert
6564
assert.Equal(t, tt.expected, result)
6665
})
6766
}

0 commit comments

Comments
 (0)