Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RekGRpth committed Sep 27, 2023
1 parent fd5116e commit 789c1dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backup/statistics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,11 +234,11 @@ WHERE oid = '"""test''schema"""."""test''table"""'::regclass::oid;`))
})
Describe("AnyValues", func() {
It("returns properly casted string when length of anyvalues is greater than 0", func() {
castedString := backup.AnyValues([]string{"1", "2"}, "int")
castedString := backup.AnyValues([]string{"1", "2"}, "int", 0)
Expect(castedString).To(Equal(`array_in('{"1","2"}', 'int'::regtype::oid, -1)`))
})
It("returns NULL if anyvalues is of length 0", func() {
castedString := backup.AnyValues([]string{}, "int")
castedString := backup.AnyValues([]string{}, "int", 0)
Expect(castedString).To(Equal(`NULL`))
})
})
Expand Down

0 comments on commit 789c1dc

Please sign in to comment.