Skip to content

Commit

Permalink
fix: clean cache test
Browse files Browse the repository at this point in the history
  • Loading branch information
radulucut committed Aug 15, 2024
1 parent 6a17be6 commit da2fa17
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/cleed/unfollow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,7 @@ https://test.com was removed from the list
ETag: "etag",
}, cacheInfo["https://test.com"])

_, err = os.Stat("https://example.com")
assert.ErrorIs(t, err, os.ErrNotExist)
assert.NoFileExists(t, path.Join(cacheDir, "feed_"+url.QueryEscape("https://example.com")))

b, err := os.ReadFile(path.Join(cacheDir, "feed_"+url.QueryEscape("https://test.com")))
if err != nil {
Expand Down

0 comments on commit da2fa17

Please sign in to comment.