From b878306d2a3fd18d4114a73febb2caa658f684ad Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 5 Mar 2017 23:15:50 +0100 Subject: tests: configfile: fix spurious test failure This test fails because Raw64 has been disabled for now. --- internal/configfile/config_file.go | 2 +- internal/configfile/config_test.go | 8 +++++--- 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) { -- cgit v1.2.3