Skip to content

Commit

Permalink
Update tests code.
Browse files Browse the repository at this point in the history
  • Loading branch information
niwinz committed Jun 27, 2019
1 parent 93909f5 commit d2f7fcc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
8 changes: 2 additions & 6 deletions test/suricatta/core_test.clj
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
(ns suricatta.core-test
(:require [clojure.test :refer :all]
[suricatta.core :as sc])
(:import org.jooq.impl.DSL
org.jooq.util.postgres.PostgresDataType))
[suricatta.core :as sc]))

(def dbspec {:subprotocol "h2"
:subname "mem:"})

(def pgdbspec {:subprotocol "postgresql"
:subname "//127.0.0.1:5433/test"
:user "test"
:password "test"})
:subname "//127.0.0.1/test"})

(def ^:dynamic *ctx*)

Expand Down
10 changes: 2 additions & 8 deletions test/suricatta/extend_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,14 @@
[suricatta.impl :as impl]
[suricatta.proto :as proto]
[cheshire.core :as json])
(:import org.postgresql.util.PGobject
org.jooq.RenderContext
org.jooq.BindContext
org.jooq.QueryPart
org.jooq.impl.DSL))
(:import org.postgresql.util.PGobject))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Connection setup
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

(def dbspec {:subprotocol "postgresql"
:subname "//127.0.0.1:5433/test"
:user "test"
:password "test"})
:subname "//127.0.0.1/test"})

(def ^:dynamic *ctx*)

Expand Down

0 comments on commit d2f7fcc

Please sign in to comment.