Skip to content

Commit b46675b

Browse files
author
Antoine Verin
committed
rename timeout to backoff_delay in tests
1 parent 0ece4b4 commit b46675b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

postgresql/resource_postgresql_script_test.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ func TestAccPostgresqlScript_basic(t *testing.T) {
1414
"SELECT 1;"
1515
]
1616
tries = 2
17-
timeout = 4
17+
backoff_delay = 4
1818
}
1919
`
2020

@@ -27,7 +27,7 @@ func TestAccPostgresqlScript_basic(t *testing.T) {
2727
Check: resource.ComposeTestCheckFunc(
2828
resource.TestCheckResourceAttr("postgresql_script.test", "commands.0", "SELECT 1;"),
2929
resource.TestCheckResourceAttr("postgresql_script.test", "tries", "2"),
30-
resource.TestCheckResourceAttr("postgresql_script.test", "timeout", "4"),
30+
resource.TestCheckResourceAttr("postgresql_script.test", "backoff_delay", "4"),
3131
),
3232
},
3333
},
@@ -43,7 +43,7 @@ func TestAccPostgresqlScript_multiple(t *testing.T) {
4343
"SELECT 3;"
4444
]
4545
tries = 2
46-
timeout = 4
46+
backoff_delay = 4
4747
}
4848
`
4949

@@ -58,7 +58,7 @@ func TestAccPostgresqlScript_multiple(t *testing.T) {
5858
resource.TestCheckResourceAttr("postgresql_script.test", "commands.1", "SELECT 2;"),
5959
resource.TestCheckResourceAttr("postgresql_script.test", "commands.2", "SELECT 3;"),
6060
resource.TestCheckResourceAttr("postgresql_script.test", "tries", "2"),
61-
resource.TestCheckResourceAttr("postgresql_script.test", "timeout", "4"),
61+
resource.TestCheckResourceAttr("postgresql_script.test", "backoff_delay", "4"),
6262
),
6363
},
6464
},
@@ -83,7 +83,7 @@ func TestAccPostgresqlScript_default(t *testing.T) {
8383
Check: resource.ComposeTestCheckFunc(
8484
resource.TestCheckResourceAttr("postgresql_script.test", "commands.0", "SELECT 1;"),
8585
resource.TestCheckResourceAttr("postgresql_script.test", "tries", "1"),
86-
resource.TestCheckResourceAttr("postgresql_script.test", "timeout", "1"),
86+
resource.TestCheckResourceAttr("postgresql_script.test", "backoff_delay", "1"),
8787
),
8888
},
8989
},
@@ -140,7 +140,7 @@ func TestAccPostgresqlScript_fail(t *testing.T) {
140140
"SLC FROM nowhere;"
141141
]
142142
tries = 2
143-
timeout = 2
143+
backoff_delay = 2
144144
}
145145
`
146146

@@ -165,7 +165,7 @@ func TestAccPostgresqlScript_failMultiple(t *testing.T) {
165165
"COMMIT"
166166
]
167167
tries = 2
168-
timeout = 2
168+
backoff_delay = 2
169169
}
170170
`
171171

0 commit comments

Comments
 (0)