Skip to content

Commit

Permalink
tests: remove test artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
natesales committed Sep 7, 2023
1 parent 4f1f371 commit 96c59bb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ package main

import (
"bytes"
"os"
"path/filepath"
"regexp"
"strings"
"testing"
Expand Down Expand Up @@ -471,6 +473,14 @@ func TestMainRecAXFR(t *testing.T) {
}, &out))
assert.Contains(t, out.String(), `AXFR zonetransfer.me.`)
assert.Contains(t, out.String(), `AXFR internal.zonetransfer.me.`)

// Remove zonetransfer files
files, err := filepath.Glob("zonetransfer.me*")
assert.Nil(t, err)
for _, f := range files {
err := os.RemoveAll(f)
assert.Nil(t, err)
}
}

func TestMainShowAll(t *testing.T) {
Expand Down

0 comments on commit 96c59bb

Please sign in to comment.