summaryrefslogtreecommitdiff
path: root/integrationtests/dcat_test.go
diff options
context:
space:
mode:
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)
}