Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoShaka committed Nov 13, 2024
1 parent 291f0ea commit 3bcb41e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
1 change: 1 addition & 0 deletions lib/autoupdate/rolloutcontroller/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ package rolloutcontroller

import (
"context"

autoupdatepb "github.com/gravitational/teleport/api/gen/proto/go/teleport/autoupdate/v1"
)

Expand Down
6 changes: 4 additions & 2 deletions lib/autoupdate/rolloutcontroller/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ package rolloutcontroller

import (
"context"
"github.com/gravitational/teleport/api/gen/proto/go/teleport/autoupdate/v1"
"testing"

"github.com/stretchr/testify/require"
"google.golang.org/protobuf/proto"
"testing"

"github.com/gravitational/teleport/api/gen/proto/go/teleport/autoupdate/v1"
)

// mockClient is a mock implementation if the Client interface for testing purposes.
Expand Down
8 changes: 5 additions & 3 deletions lib/autoupdate/rolloutcontroller/reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@ package rolloutcontroller

import (
"context"
"github.com/gravitational/teleport/api/gen/proto/go/teleport/autoupdate/v1"
update "github.com/gravitational/teleport/api/types/autoupdate"
"github.com/gravitational/trace"
"log/slog"
"sync"
"time"

"github.com/gravitational/trace"

"github.com/gravitational/teleport/api/gen/proto/go/teleport/autoupdate/v1"
update "github.com/gravitational/teleport/api/types/autoupdate"
)

const (
Expand Down
10 changes: 6 additions & 4 deletions lib/autoupdate/rolloutcontroller/reconciler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,19 @@ package rolloutcontroller

import (
"context"
"testing"

"github.com/google/go-cmp/cmp"
"github.com/google/uuid"
"github.com/gravitational/trace"
"github.com/stretchr/testify/require"
"google.golang.org/protobuf/testing/protocmp"

"github.com/gravitational/teleport/api/gen/proto/go/teleport/autoupdate/v1"
update "github.com/gravitational/teleport/api/types/autoupdate"
apiutils "github.com/gravitational/teleport/api/utils"
"github.com/gravitational/teleport/lib/backend"
"github.com/gravitational/teleport/lib/utils"
"github.com/gravitational/trace"
"github.com/stretchr/testify/require"
"google.golang.org/protobuf/testing/protocmp"
"testing"
)

// rolloutEquals returns a require.ValueAssertionFunc that checks the rollout is identical.
Expand Down

0 comments on commit 3bcb41e

Please sign in to comment.