Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
macielti committed Aug 22, 2023
1 parent 3582a1a commit dc330d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/integration/integration/postgresql.clj
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
(s/deftest postresql-component-test
(let [system (component/start system-test)
postgresql (component.helper/get-component-content :postgresql system)]
(jdbc/execute! postgresql ["INSERT INTO pessoa (apelido, nome, nascimento) VALUES (?, ?, ?)" "brunão" "nascimento" (instant/read-instant-timestamp "2000-10-01")])
(jdbc/execute! postgresql ["INSERT INTO pessoa (apelido, nome, nascimento) VALUES (?, ?, ?)" "brunão" "nascimento" (instant/read-instant-timestamp "2020-03-23T01:17Z")])
(is (= [{:apelido "brunão"
:nascimento #inst "2000-09-30T03:00:00.000-00:00"
:nascimento #inst "2020-03-22T03:00:00.000-00:00"
:nome "nascimento"}]
(jdbc/execute! postgresql ["SELECT apelido, nascimento, nome FROM pessoa WHERE nome = ?" "nascimento"])))
(jdbc/execute! postgresql ["DROP TABLE pessoa"])
Expand Down

0 comments on commit dc330d3

Please sign in to comment.