aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nvdmirror/jsoncache_test.go4
-rw-r--r--nvdmirror/testdata/bad-data.json1
-rw-r--r--nvdmirror/testdata/bad-data.json.gzbin0 -> 37 bytes
l---------nvdmirror/testdata/bad-stat.json.gz (renamed from nvdmirror/testdata/bad-stat.json)0
4 files changed, 2 insertions, 3 deletions
diff --git a/nvdmirror/jsoncache_test.go b/nvdmirror/jsoncache_test.go
index 5dc0277..a12acaf 100644
--- a/nvdmirror/jsoncache_test.go
+++ b/nvdmirror/jsoncache_test.go
@@ -112,8 +112,8 @@ func TestNewJsonCache(t *testing.T) {
failNewTests := []string {
"testdata/does/not/exist",
- "testdata/bad-data.json",
- "testdata/bad-stat.json",
+ "testdata/bad-data.json.gz",
+ "testdata/bad-stat.json.gz",
}
for _, test := range(failNewTests) {
diff --git a/nvdmirror/testdata/bad-data.json b/nvdmirror/testdata/bad-data.json
deleted file mode 100644
index 4117452..0000000
--- a/nvdmirror/testdata/bad-data.json
+++ /dev/null
@@ -1 +0,0 @@
-{"
diff --git a/nvdmirror/testdata/bad-data.json.gz b/nvdmirror/testdata/bad-data.json.gz
new file mode 100644
index 0000000..8449ac5
--- /dev/null
+++ b/nvdmirror/testdata/bad-data.json.gz
Binary files differ
diff --git a/nvdmirror/testdata/bad-stat.json b/nvdmirror/testdata/bad-stat.json.gz
index 1eb768d..1eb768d 120000
--- a/nvdmirror/testdata/bad-stat.json
+++ b/nvdmirror/testdata/bad-stat.json.gz