CI: lint test-integ (#18875)

* CI: lint test-integ

* fix lint error
This commit is contained in:
cskh 2023-09-19 10:05:51 -04:00 committed by GitHub
parent 6fd33ba30d
commit 9b497f8c78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -34,6 +34,7 @@ jobs:
- "envoyextensions" - "envoyextensions"
- "troubleshoot" - "troubleshoot"
- "test/integration/consul-container" - "test/integration/consul-container"
- "test-integ"
- "testing/deployer" - "testing/deployer"
fail-fast: true fail-fast: true
name: lint ${{ matrix.directory }} name: lint ${{ matrix.directory }}

View File

@ -196,7 +196,7 @@ func (s *ac7_2RotateLeaderSuite) test(t *testing.T, ct *commonTopo) {
func rotateLeader(t *testing.T, cl *api.Client) { func rotateLeader(t *testing.T, cl *api.Client) {
t.Helper() t.Helper()
oldLeader := findLeader(t, cl) oldLeader := findLeader(t, cl)
_, err := cl.Operator().RaftLeaderTransfer(nil) _, err := cl.Operator().RaftLeaderTransfer("", nil)
require.NoError(t, err) require.NoError(t, err)
retry.RunWith(&retry.Timer{Timeout: 30 * time.Second, Wait: time.Second}, t, func(r *retry.R) { retry.RunWith(&retry.Timer{Timeout: 30 * time.Second, Wait: time.Second}, t, func(r *retry.R) {
newLeader := findLeader(r, cl) newLeader := findLeader(r, cl)