Fixing Hang Issue in KeyFile Integration Test
@@ -21,7 +21,6 @@ import (
"os"
"os/exec"
"path"
-
//"runtime"
"syscall"
"testing"
@@ -182,8 +181,6 @@ func (t *GcsfuseTest) MountPointIsAFile() {
ExpectThat(err, Error(HasSubstr("is not a directory")))
}
-// TODO: hangs
-/*
func (t *GcsfuseTest) KeyFile() {
const nonexistent = "/tmp/foobarbazdoesntexist"
@@ -194,12 +191,13 @@ func (t *GcsfuseTest) KeyFile() {
}{
// Via flag
0: {
- extraArgs: []string{fmt.Sprintf("--key-file=%s", nonexistent)},
+ extraArgs: []string{fmt.Sprintf("--key-file=%s", nonexistent), "--max-retry-sleep=0"},
},
// Via the environment
1: {
env: []string{fmt.Sprintf("GOOGLE_APPLICATION_CREDENTIALS=%s", nonexistent)},
+ extraArgs: []string{"--max-retry-sleep=0"},
},
}
@@ -218,7 +216,6 @@ func (t *GcsfuseTest) KeyFile() {
ExpectThat(string(output), HasSubstr("no such file"), "case %d", i)
}
}
-*/
func (t *GcsfuseTest) CannedContents() {
var err error
