Skip to content

Commit 95924a1

Browse files
author
zsbahtiar
committed
fix: lint
1 parent e17f73a commit 95924a1

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

tests/integration/api_repo_action_delete_test.go

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
1+
// Copyright 2025 The Gitea Authors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
package integration
25

36
import (
7+
"context"
8+
"fmt"
9+
"net/http"
10+
"net/url"
11+
"strconv"
12+
"testing"
13+
414
runnerv1 "code.gitea.io/actions-proto-go/runner/v1"
515
actions_model "code.gitea.io/gitea/models/actions"
616
auth_model "code.gitea.io/gitea/models/auth"
717
"code.gitea.io/gitea/models/unittest"
818
user_model "code.gitea.io/gitea/models/user"
919
"code.gitea.io/gitea/modules/util"
1020
"code.gitea.io/gitea/tests"
11-
"context"
12-
"fmt"
21+
1322
"github.com/PuerkitoBio/goquery"
14-
"net/http"
15-
"net/url"
16-
"strconv"
17-
"testing"
1823

1924
"github.com/stretchr/testify/assert"
2025
)
@@ -225,8 +230,7 @@ jobs:
225230

226231
// should not found
227232
_, err := actions_model.GetRunsByIDsAndTriggerUserID(context.Background(), runIDs, user2.ID)
228-
assert.Error(t, fmt.Errorf("run with ids %d: %w", runIDs, util.ErrNotExist), err)
233+
assert.EqualError(t, err, fmt.Errorf("run with ids %d: %w", runIDs, util.ErrNotExist).Error())
229234
doAPIDeleteRepository(httpContext)
230235
})
231-
232236
}

0 commit comments

Comments
 (0)