Skip to content

Commit 618f93d

Browse files
authored
test: fix typos in batch upsert tests
1 parent 317619b commit 618f93d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/spec/Feature/Query/PlanSpec.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ spec actualPgVersion = do
196196

197197
it "outputs the total cost for 2 upserts" $ do
198198
r <- request methodPost "/tiobe_pls"
199-
[("Prefer","handling=strict; resolution=merge-duplicates"), ("Accept","application/vnd.pgrst.plan+json")]
199+
[("Prefer","resolution=merge-duplicates"), ("Accept","application/vnd.pgrst.plan+json")]
200200
[json| [ { "name": "Python", "rank": 19 }, { "name": "Go", "rank": 20} ]|]
201201

202202
let totalCost = planCost r
@@ -210,7 +210,7 @@ spec actualPgVersion = do
210210

211211
it "outputs the total cost for an upsert with 10 rows" $ do
212212
r <- request methodPost "/tiobe_pls"
213-
[("Prefer","handling=strict; resolution=merge-duplicates"), ("Accept","application/vnd.pgrst.plan+json")]
213+
[("Prefer","resolution=merge-duplicates"), ("Accept","application/vnd.pgrst.plan+json")]
214214
(getInsertDataForTiobePlsTable 10)
215215

216216
let totalCost = planCost r
@@ -224,7 +224,7 @@ spec actualPgVersion = do
224224

225225
it "outputs the total cost for an upsert with 100 rows" $ do
226226
r <- request methodPost "/tiobe_pls"
227-
[("Prefer","handling=strict; resolution=merge-duplicates"), ("Accept","application/vnd.pgrst.plan+json")]
227+
[("Prefer","resolution=merge-duplicates"), ("Accept","application/vnd.pgrst.plan+json")]
228228
(getInsertDataForTiobePlsTable 100)
229229

230230
let totalCost = planCost r
@@ -238,7 +238,7 @@ spec actualPgVersion = do
238238

239239
it "outputs the total cost for an upsert with 1000 rows" $ do
240240
r <- request methodPost "/tiobe_pls"
241-
[("Prefer","handling=strict; resolution=merge-duplicates"), ("Accept","application/vnd.pgrst.plan+json")]
241+
[("Prefer","resolution=merge-duplicates"), ("Accept","application/vnd.pgrst.plan+json")]
242242
(getInsertDataForTiobePlsTable 1000)
243243

244244
let totalCost = planCost r

0 commit comments

Comments
 (0)