Silence unused variable warning

This commit is contained in:
Sean Chittenden 2016-05-27 03:38:07 -07:00
parent 89168b0c51
commit 930ac0268a
No known key found for this signature in database
GPG Key ID: 4EBC9DC16C2E5E16
1 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ func TestNodes_PrefixList(t *testing.T) {
var err error
// Get the node ID
var nodeID, dc string
var nodeID string
testutil.WaitForResult(func() (bool, error) {
out, _, err := nodes.List(nil)
if err != nil {
@ -60,7 +60,7 @@ func TestNodes_PrefixList(t *testing.T) {
return false, fmt.Errorf("expected 1 node, got: %d", n)
}
nodeID = out[0].ID
dc = out[0].Datacenter
_ = out[0].Datacenter
return true, nil
}, func(err error) {
t.Fatalf("err: %s", err)