From 28b3af12d1c48f45b07552e68fd09b2e4cda28b6 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Tue, 3 Nov 2015 18:19:19 +0100 Subject: Fix tests broken by PlaintextNames addition --- cryptfs/content_test.go | 6 +++--- cryptfs/names_test.go | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'cryptfs') diff --git a/cryptfs/content_test.go b/cryptfs/content_test.go index 37635f0..dbedf87 100644 --- a/cryptfs/content_test.go +++ b/cryptfs/content_test.go @@ -21,7 +21,7 @@ func TestSplitRange(t *testing.T) { testRange{6654, 8945}) key := make([]byte, KEY_LEN) - f := NewCryptFS(key, true) + f := NewCryptFS(key, true, false) for _, r := range ranges { parts := f.ExplodePlainRange(r.offset, r.length) @@ -48,7 +48,7 @@ func TestCiphertextRange(t *testing.T) { testRange{6654, 8945}) key := make([]byte, KEY_LEN) - f := NewCryptFS(key, true) + f := NewCryptFS(key, true, false) for _, r := range ranges { @@ -70,7 +70,7 @@ func TestCiphertextRange(t *testing.T) { func TestBlockNo(t *testing.T) { key := make([]byte, KEY_LEN) - f := NewCryptFS(key, true) + f := NewCryptFS(key, true, false) b := f.CipherOffToBlockNo(788) if b != 0 { diff --git a/cryptfs/names_test.go b/cryptfs/names_test.go index 14c15c1..ccf08df 100644 --- a/cryptfs/names_test.go +++ b/cryptfs/names_test.go @@ -12,7 +12,7 @@ func TestTranslatePath(t *testing.T) { s = append(s, "123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890") key := make([]byte, KEY_LEN) - fs := NewCryptFS(key, true) + fs := NewCryptFS(key, true, false) for _, n := range s { c := fs.EncryptPath(n) @@ -34,7 +34,7 @@ func TestPad16(t *testing.T) { s = append(s, []byte("12345678901234567abcdefg")) key := make([]byte, KEY_LEN) - fs := NewCryptFS(key, true) + fs := NewCryptFS(key, true, false) for i := range s { orig := s[i] -- cgit v1.2.3