diff --git a/.woodpecker/test.yml b/.woodpecker/test.yml index 4113d01..18cba44 100644 --- a/.woodpecker/test.yml +++ b/.woodpecker/test.yml @@ -26,7 +26,7 @@ steps: "Fill MySQL": image: *mysql_image commands: - - mysql test < tests/mysql_data.sql + - mysql -hservice-mysql -uroot test < tests/mysql_data.sql "Run tests": image: *golang_image diff --git a/app/app_test.go b/app/app_test.go index f3b031f..cca229e 100644 --- a/app/app_test.go +++ b/app/app_test.go @@ -48,7 +48,7 @@ func TestAppRun(t *testing.T) { schema, _ := config.LoadSchemaConfigFromFile("../tests/schema.yml") dsns := []string{ - "mysql://tcp(service-mysql)/test", + "mysql://root@tcp(service-mysql)/test", // "postgres://postgres@tcp(service-postgres)/test", }