summaryrefslogtreecommitdiff
path: root/integrationtests/dcat_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2021-10-10 19:42:48 +0300
committerPaul Buetow <paul@buetow.org>2021-10-11 11:52:30 +0300
commit71f89dc7ec7cf993d1eca98771212afe6310e9c8 (patch)
treeca2812fb142b2d98f8a8092992a33d575329997a /integrationtests/dcat_test.go
parentf44792c9102488774c9993b080f35c65287a64b1 (diff)
refactor
Diffstat (limited to 'integrationtests/dcat_test.go')
-rw-r--r--integrationtests/dcat_test.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/integrationtests/dcat_test.go b/integrationtests/dcat_test.go
index 342ebd0..e172bfa 100644
--- a/integrationtests/dcat_test.go
+++ b/integrationtests/dcat_test.go
@@ -1,6 +1,7 @@
package integrationtests
import (
+ "context"
"os"
"testing"
)
@@ -8,15 +9,19 @@ import (
func TestDCat(t *testing.T) {
testdataFile := "dcat.txt.expected"
stdoutFile := "dcat.out"
- args := []string{"-spartan", testdataFile}
- if _, err := runCommand(t, "../dcat", args, stdoutFile); err != nil {
+ _, err := runCommand(context.TODO(), stdoutFile,
+ "../dcat", "--spartan", testdataFile)
+
+ if err != nil {
t.Error(err)
return
}
+
if err := compareFiles(t, stdoutFile, testdataFile); err != nil {
t.Error(err)
return
}
+
os.Remove(stdoutFile)
}