3021: Set env var to empty string instead of removing it. Unsetenv isn't worth introd...
authorTom Clegg <tom@curoverse.com>
Thu, 5 Feb 2015 21:29:27 +0000 (16:29 -0500)
committerTom Clegg <tom@curoverse.com>
Thu, 5 Feb 2015 21:29:27 +0000 (16:29 -0500)
sdk/go/arvadosclient/arvadosclient_test.go

index d8bec398b80c8268f7ccd304c65445322dacf779..1af964d0a045ad2b4bb0a6dd9610fcf11d8027d3 100644 (file)
@@ -28,7 +28,7 @@ func (s *ServerRequiredSuite) SetUpTest(c *C) {
 }
 
 func (s *ServerRequiredSuite) TestMakeArvadosClientSecure(c *C) {
-       os.Unsetenv("ARVADOS_API_HOST_INSECURE")
+       os.Setenv("ARVADOS_API_HOST_INSECURE", "")
        kc, err := MakeArvadosClient()
        c.Assert(err, Equals, nil)
        c.Check(kc.ApiServer, Equals, os.Getenv("ARVADOS_API_HOST"))