Skip to content

Commit

Permalink
Clean test artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
hjr265 committed Sep 14, 2023
1 parent 1c5ab44 commit 5fb7948
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"encoding/json"
"net/http"
"net/http/httptest"
"os"
"sync"
"testing"

Expand All @@ -30,7 +31,9 @@ func TestPrintLoop(t *testing.T) {
}))

assert.FileExists(t, "6502f46b17592a5a9e870928.pdf")
os.Remove("6502f46b17592a5a9e870928.pdf")
assert.FileExists(t, "6502f9bf92c75c2f7874698e.pdf")
os.Remove("6502f9bf92c75c2f7874698e.pdf")

assert.Equal(t, []string{
"6502f46b17592a5a9e870928",
Expand All @@ -49,6 +52,7 @@ func TestPrintLoopEmptyHeader(t *testing.T) {
}))

assert.FileExists(t, "6502fec79eed503a402e0b59.pdf")
os.Remove("6502fec79eed503a402e0b59.pdf")

assert.Equal(t, []string{
"6502fec79eed503a402e0b59",
Expand All @@ -66,6 +70,7 @@ func TestPrintLoopEmptyContent(t *testing.T) {
}))

assert.FileExists(t, "6502fecc74093fd44c060e11.pdf")
os.Remove("6502fecc74093fd44c060e11.pdf")

assert.Equal(t, []string{
"6502fecc74093fd44c060e11",
Expand All @@ -90,7 +95,9 @@ func TestPrintLoopBreak(t *testing.T) {
}))

assert.FileExists(t, "6502fed2ee36d5244aade158.pdf")
os.Remove("6502fed2ee36d5244aade158.pdf")
assert.FileExists(t, "6502fed88ea6c9620b82bf5a.pdf")
os.Remove("6502fed88ea6c9620b82bf5a.pdf")

assert.Equal(t, []string{
"6502fed2ee36d5244aade158",
Expand Down

0 comments on commit 5fb7948

Please sign in to comment.