Skip to content

Commit 168ba64

Browse files
committed
fix lint errors
1 parent 0e7de9a commit 168ba64

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

cloud/providerid/providerid_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ func TestNew(t *testing.T) {
1313

1414
uuid = "asdf"
1515
providerID, err = New(uuid)
16-
if err != nil {
16+
if err != nil || providerID.String() != "proxmox://asdf" {
1717
t.Errorf("failed to create providerID: %v", err)
1818
}
1919
}

cloud/scope/clients_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ var _ = Describe("newComputeService", func() {
5656
secret := &corev1.Secret{}
5757
secret.SetNamespace("default")
5858
secret.SetName("foo")
59-
k8sClient.Create(context.TODO(), secret)
59+
err := k8sClient.Create(context.TODO(), secret)
60+
Expect(err).To(BeNil())
6061
})
6162

6263
It("Should return proper error", func() {

cloud/scope/suite_test.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,9 @@ import (
2020
)
2121

2222
var (
23-
cfg *rest.Config
24-
k8sClient client.Client
25-
testEnv *envtest.Environment
26-
proxmoxUser string
27-
proxmoxPassword string
23+
cfg *rest.Config
24+
k8sClient client.Client
25+
testEnv *envtest.Environment
2826
)
2927

3028
func TestScopes(t *testing.T) {

0 commit comments

Comments
 (0)