From b059b0d6dd84c3d964d4ff6333359128e3cc9000 Mon Sep 17 00:00:00 2001 From: Nicolas Lamirault Date: Tue, 12 Jan 2016 22:20:50 +0100 Subject: [PATCH] FIX golang style Update log message Change strings concatenation method Signed-off-by: Nicolas Lamirault --- updater/fetchers/archlinux_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/updater/fetchers/archlinux_test.go b/updater/fetchers/archlinux_test.go index 78a970c1..eb1748be 100644 --- a/updater/fetchers/archlinux_test.go +++ b/updater/fetchers/archlinux_test.go @@ -47,15 +47,15 @@ func TestArchLinuxCVEBuilder(t *testing.T) { func TestArchlinuxParser(t *testing.T) { _, filename, _, _ := runtime.Caller(0) - testFile, _ := os.Open( - path.Join(path.Dir(filename)) + "/testdata/fetcher_archlinux.txt") + testFile, _ := os.Open(path.Join(path.Dir(filename), "/testdata/fetcher_archlinux.txt")) response, err := parseArchLinuxWikiCVE(testFile, "") + defer testFile.Close() if err != nil { - t.Fatalf("Error reading Arch CVE: %s %s", + t.Fatalf("Error parsing Arch Linux CVE: %s %s", testFile.Name(), err.Error()) } if response.Vulnerabilities == nil || len(response.Vulnerabilities) < 300 { - t.Fatalf("Arch vulnerabilities: %d", len(response.Vulnerabilities)) + t.Fatalf("Arch Linux vulnerabilities: %d", len(response.Vulnerabilities)) } // if response.Packages != nil {