File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,11 +21,12 @@ import (
2121 "fmt"
2222 "testing"
2323
24- "github.com/NVIDIA/holodeck/api/holodeck/v1alpha1"
2524 "github.com/aws/aws-sdk-go-v2/aws"
2625 "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2"
2726 elbv2types "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types"
2827 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
28+
29+ "github.com/NVIDIA/holodeck/api/holodeck/v1alpha1"
2930)
3031
3132// MockELBv2Client implements internalaws.ELBv2Client for testing.
Original file line number Diff line number Diff line change @@ -27,8 +27,9 @@ import (
2727 "testing"
2828 "time"
2929
30- "github.com/NVIDIA/holodeck/internal/logger"
3130 "golang.org/x/crypto/ssh"
31+
32+ "github.com/NVIDIA/holodeck/internal/logger"
3233)
3334
3435// countingTransport counts Dial() calls while connecting to a black hole.
@@ -126,14 +127,14 @@ func startBlackHoleServer(t *testing.T) string {
126127 }
127128 go func (c net.Conn ) {
128129 <- done
129- c .Close ()
130+ _ = c .Close ()
130131 }(conn )
131132 }
132133 }()
133134
134135 t .Cleanup (func () {
135136 close (done )
136- listener .Close ()
137+ _ = listener .Close ()
137138 })
138139
139140 return listener .Addr ().String ()
You can’t perform that action at this time.
0 commit comments