summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorJakob Unterwurzacher2017-03-05 23:15:50 +0100
committerJakob Unterwurzacher2017-03-05 23:15:50 +0100
commitb878306d2a3fd18d4114a73febb2caa658f684ad (patch)
tree38f144eaf090c217da32698f006e460e8a9790c4 /internal
parentb7538fc026dc25d0061e08bedc4b3aff97bb52d2 (diff)
tests: configfile: fix spurious test failure
This test fails because Raw64 has been disabled for now.
Diffstat (limited to 'internal')
-rw-r--r--internal/configfile/config_file.go2
-rw-r--r--internal/configfile/config_test.go8
2 files changed, 6 insertions, 4 deletions
diff --git a/internal/configfile/config_file.go b/internal/configfile/config_file.go
index b5ac258..7a94fcb 100644
--- a/internal/configfile/config_file.go
+++ b/internal/configfile/config_file.go
@@ -65,7 +65,7 @@ func CreateConfFile(filename string, password string, plaintextNames bool, logN
cf.FeatureFlags = append(cf.FeatureFlags, knownFlags[FlagEMENames])
cf.FeatureFlags = append(cf.FeatureFlags, knownFlags[FlagLongNames])
// TODO enable these and release as v1.3-beta1 once we have enough test
- // coverage
+ // coverage. Also enable the Raw64 check in TestCreateConfFile()!
//cf.FeatureFlags = append(cf.FeatureFlags, knownFlags[FlagRaw64])
//cf.FeatureFlags = append(cf.FeatureFlags, knownFlags[FlagHKDF])
}
diff --git a/internal/configfile/config_test.go b/internal/configfile/config_test.go
index 7899dac..dc81600 100644
--- a/internal/configfile/config_test.go
+++ b/internal/configfile/config_test.go
@@ -69,9 +69,11 @@ func TestCreateConfFile(t *testing.T) {
t.Fatal(err)
}
// Raw64 is set by default since gocryptfs v1.3
- if !c.IsFeatureFlagSet(FlagRaw64) {
- t.Error("FlagRaw64 flag should be set but is not")
- }
+ /*
+ if !c.IsFeatureFlagSet(FlagRaw64) {
+ t.Error("FlagRaw64 flag should be set but is not")
+ }
+ */
}
func TestCreateConfFileAESSIV(t *testing.T) {