tests: configfile: fix spurious test failure

This test fails because Raw64 has been disabled for now.
This commit is contained in:
Jakob Unterwurzacher 2017-03-05 23:15:50 +01:00
parent b7538fc026
commit b878306d2a
2 changed files with 6 additions and 4 deletions

View File

@ -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])
}

View File

@ -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) {