aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorPawel Wieczorek <p.wieczorek2@samsung.com>2020-11-20 16:19:34 +0100
committerPawel Wieczorek <p.wieczorek2@samsung.com>2020-11-25 15:55:49 +0100
commitdf618d1b68cd4907db084a2f73cc43c6bc2bb12a (patch)
tree4189e1d11781a6a68837bcf7355992d8c7f3d65a /test
parent1a5a1ad36edcb3d8e6d041aa9ea1f622206c37f5 (diff)
Unify variable initialization
It is not possible to know "expected fails" list length upfront, hence there is no need to call "make" on "xfails" map - there are no optimization profits. Issue-ID: INT-1582 Change-Id: I0e21d83098359359d17661e6265760d7e95739b9 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
Diffstat (limited to 'test')
-rw-r--r--test/security/sslendpoints/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/security/sslendpoints/main.go b/test/security/sslendpoints/main.go
index ce5948cc5..ddad51c68 100644
--- a/test/security/sslendpoints/main.go
+++ b/test/security/sslendpoints/main.go
@@ -47,7 +47,7 @@ func main() {
listOptions = metav1.ListOptions{FieldSelector: "metadata.namespace=" + *namespace}
}
- xfails := make(map[uint16]string)
+ var xfails map[uint16]string
if *xfailName != "" {
xfailFile, err := os.Open(*xfailName)
if err != nil {