summaryrefslogtreecommitdiff
path: root/integration_tests/main_test.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2015-11-27 00:03:10 +0100
committerJakob Unterwurzacher2015-11-27 00:03:10 +0100
commitdecfc1ab798055234e16a2e9c0782f56ae50669b (patch)
treebdff27eb861a17399b66e28883abfd2624b184c1 /integration_tests/main_test.go
parentfe2fcf6c162a8370670fd1262b90925bf321f199 (diff)
diriv: Convert filename encryption users to diriv
Diffstat (limited to 'integration_tests/main_test.go')
-rw-r--r--integration_tests/main_test.go10
1 files changed, 6 insertions, 4 deletions
diff --git a/integration_tests/main_test.go b/integration_tests/main_test.go
index 4b2c11e..e46e2e4 100644
--- a/integration_tests/main_test.go
+++ b/integration_tests/main_test.go
@@ -60,16 +60,18 @@ func TestMain(m *testing.M) {
func testWriteN(t *testing.T, fn string, n int) string {
file, err := os.Create(defaultPlainDir + fn)
if err != nil {
- t.FailNow()
+ t.Fatal(err)
}
d := make([]byte, n)
written, err := file.Write(d)
if err != nil || written != len(d) {
- fmt.Printf("err=\"%s\", written=%d\n", err, written)
- t.Fail()
+ t.Errorf("err=\"%s\", written=%d\n", err, written)
+ }
+ err = file.Close()
+ if err != nil {
+ t.Error(err)
}
- file.Close()
verifySize(t, defaultPlainDir+fn, n)