Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
worstell committed Jan 13, 2024
1 parent 96c1c0d commit 873f4e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions integration/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func TestIntegration(t *testing.T) {
{name: "UseKotlinDbConn", assertions: assertions{
setUpModuleDb(filepath.Join(modulesDir, "ftl-module-echo3")),
run(".", "ftl", "deploy", filepath.Join(modulesDir, "ftl-module-echo3")),
call("dbtest", "create", obj{"data": "Hello"}, func(t testing.TB, resp obj) {}),
call("echo", "db", obj{"data": "Hello"}, func(t testing.TB, resp obj) {}),
validateModuleDb(),
}},
{name: "SchemaGenerateJS", assertions: assertions{
Expand Down Expand Up @@ -231,7 +231,7 @@ func call[Resp any](module, verb string, req obj, onResponse func(t testing.TB,
}

func setUpModuleDb(dir string) assertion {
os.Setenv("FTL_POSTGRES_DSN_dbtest_testdb", "postgres://postgres:secret@localhost:54320/testdb?sslmode=disable")
os.Setenv("FTL_POSTGRES_DSN_echo_testdb", "postgres://postgres:secret@localhost:54320/testdb?sslmode=disable")
return func(t testing.TB, ic itContext) error {
db, err := sql.Open("pgx", "postgres://postgres:secret@localhost:54320/ftl?sslmode=disable")
assert.NoError(t, err)
Expand Down
4 changes: 2 additions & 2 deletions integration/testdata/database/DbTest.kt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ftl.dbtest
package ftl.echo

import xyz.block.ftl.Context
import xyz.block.ftl.Verb
Expand All @@ -11,7 +11,7 @@ val db = Database("testdb")

class DbTest {
@Verb
fun create(context: Context, req: DbRequest): DbResponse {
fun db(context: Context, req: DbRequest): DbResponse {
persistRequest(req)
return DbResponse()
}
Expand Down

0 comments on commit 873f4e0

Please sign in to comment.