Skip to content

Commit

Permalink
test(teler): handle nonexistent dataset in malformed subtest
Browse files Browse the repository at this point in the history
Signed-off-by: Dwi Siswanto <[email protected]>
  • Loading branch information
dwisiswant0 committed Feb 26, 2024
1 parent 00140cb commit 5f425af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion teler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ func TestNewWithMalformedDataset(t *testing.T) {
t.Run("malformed", func(t *testing.T) {
// Append CVEs dataset
f, err := os.OpenFile(cvesPath, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
if err != nil {
if err != nil && !os.IsNotExist(err) {
t.Fatal(err)
}
defer f.Close()
Expand Down

0 comments on commit 5f425af

Please sign in to comment.