provider/consul: Fixing test DC
This commit is contained in:
parent
3fcc016e48
commit
00eaabf5b8
|
@ -30,7 +30,7 @@ func TestAccConsulKeys(t *testing.T) {
|
|||
|
||||
func testAccCheckConsulKeysDestroy(s *terraform.State) error {
|
||||
kv := testAccProvider.Meta().(*consulapi.Client).KV()
|
||||
opts := &consulapi.QueryOptions{Datacenter: "nyc1"}
|
||||
opts := &consulapi.QueryOptions{Datacenter: "nyc3"}
|
||||
pair, _, err := kv.Get("test/set", opts)
|
||||
if err != nil {
|
||||
return err
|
||||
|
@ -44,7 +44,7 @@ func testAccCheckConsulKeysDestroy(s *terraform.State) error {
|
|||
func testAccCheckConsulKeysExists() resource.TestCheckFunc {
|
||||
return func(s *terraform.State) error {
|
||||
kv := testAccProvider.Meta().(*consulapi.Client).KV()
|
||||
opts := &consulapi.QueryOptions{Datacenter: "nyc1"}
|
||||
opts := &consulapi.QueryOptions{Datacenter: "nyc3"}
|
||||
pair, _, err := kv.Get("test/set", opts)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
Loading…
Reference in New Issue