From 61aacb5c1bd3368366484b9e03cf90ccf85f1125 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sat, 14 Nov 2015 17:16:17 +0100 Subject: Run go fmt and go vet --- integration_tests/main_test.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'integration_tests/main_test.go') diff --git a/integration_tests/main_test.go b/integration_tests/main_test.go index 222c192..6049646 100644 --- a/integration_tests/main_test.go +++ b/integration_tests/main_test.go @@ -1,10 +1,10 @@ package integration_tests import ( - "flag" "bytes" "crypto/md5" "encoding/hex" + "flag" "fmt" "io/ioutil" "os" @@ -33,7 +33,6 @@ func TestMain(m *testing.M) { os.Exit(r) } - if testing.Verbose() { fmt.Printf("***** Testing with native Go crypto\n") } @@ -278,7 +277,7 @@ func TestFiltered(t *testing.T) { filteredFile := plainDir + "gocryptfs.conf" file, err := os.Create(filteredFile) if plaintextNames == true && err == nil { - fmt.Errorf("should have failed but didn't") + t.Errorf("should have failed but didn't") } else if plaintextNames == false && err != nil { t.Error(err) } @@ -286,7 +285,7 @@ func TestFiltered(t *testing.T) { err = os.Remove(filteredFile) if plaintextNames == true && err == nil { - fmt.Errorf("should have failed but didn't") + t.Errorf("should have failed but didn't") } else if plaintextNames == false && err != nil { t.Error(err) } -- cgit v1.2.3