Skip to content

Commit edb5cca

Browse files
committed
test: fix tests
1 parent e04c46e commit edb5cca

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

api/api_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ func TestApiPing(t *testing.T) {
2424
nil,
2525
nil,
2626
nil,
27+
nil,
28+
nil,
2729
)
2830

2931
r.ServeHTTP(rr, req)

db/sql/SqlDb_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77

88
func TestValidatePort(t *testing.T) {
99
d := SqlDb{}
10-
q := d.prepareQueryWithDialect("select * from `test` where id = ?, email = ?", gorp.PostgresDialect{})
10+
q := d.connection.prepareQueryWithDialect("select * from `test` where id = ?, email = ?", gorp.PostgresDialect{})
1111
if q != "select * from \"test\" where id = $1, email = $2" {
1212
t.Error("invalid postgres query")
1313
}

0 commit comments

Comments
 (0)