Skip to content

Commit 9046b84

Browse files
committed
Don't use "IF EXISTS" in *all* tests...
1 parent d9c3b5c commit 9046b84

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

t/000_init.t

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,11 @@ GET /init
8888
--- config
8989
location = /init {
9090
postgres_pass database;
91-
postgres_query "DROP TABLE IF EXISTS numbers";
91+
postgres_query "DROP TABLE numbers";
92+
error_page 500 = /ignore;
9293
}
94+
95+
location /ignore { echo "ignore"; }
9396
--- request
9497
GET /init
9598
--- error_code: 200
@@ -116,8 +119,11 @@ GET /init
116119
--- config
117120
location = /init {
118121
postgres_pass database;
119-
postgres_query "DROP TABLE IF EXISTS users";
122+
postgres_query "DROP TABLE users";
123+
error_page 500 = /ignore;
120124
}
125+
126+
location /ignore { echo "ignore"; }
121127
--- request
122128
GET /init
123129
--- error_code: 200

0 commit comments

Comments
 (0)