Skip to content

Commit a021da4

Browse files
committed
Fix lints
1 parent 518cf3e commit a021da4

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

internal/server/integration/server_integration_suite_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import (
1414

1515
"github.com/digitalocean/go-libvirt"
1616
corev1alpha1 "github.com/ironcore-dev/ironcore/api/core/v1alpha1"
17-
iri "github.com/ironcore-dev/ironcore/iri/apis/machine/v1alpha1"
1817
iriv1alpha1 "github.com/ironcore-dev/ironcore/iri/apis/machine/v1alpha1"
1918
"github.com/ironcore-dev/ironcore/iri/remote/machine"
2019
"github.com/ironcore-dev/libvirt-provider/api"
@@ -183,7 +182,7 @@ func isSocketAvailable(socketPath string) error {
183182
func cleanupMachine(machineID string) func(ctx SpecContext) {
184183
return func(ctx SpecContext) {
185184
Eventually(func(g Gomega) error {
186-
_, err := machineClient.DeleteMachine(ctx, &iri.DeleteMachineRequest{MachineId: machineID})
185+
_, err := machineClient.DeleteMachine(ctx, &iriv1alpha1.DeleteMachineRequest{MachineId: machineID})
187186
if success, _ := MatchError(ContainSubstring("NotFound")).Match(err); success {
188187
return nil
189188
}

internal/server/server_suite_test.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -217,17 +217,3 @@ func isSocketAvailable(socketPath string) error {
217217
}
218218
return fmt.Errorf("socket %s is not available", socketPath)
219219
}
220-
221-
func cleanupMachine(machineID string) func(SpecContext) {
222-
return func(ctx SpecContext) {
223-
By(fmt.Sprintf("Cleaning up machine ID=%s", machineID))
224-
Eventually(func(g Gomega) error {
225-
err := machineStore.Delete(context.Background(), machineID)
226-
GinkgoWriter.Printf("Deleting machine ID=%s: err=%v\n", machineID, err)
227-
if success, _ := MatchError(ContainSubstring("no such file or directory")).Match(err); success {
228-
return nil
229-
}
230-
return err
231-
}).Should(Succeed())
232-
}
233-
}

0 commit comments

Comments
 (0)