Merged in feature/tests (pull request #117)
Feature/tests * improvetests * generation * simplifiedtesting * simplifiedtesting * longfile
This commit is contained in:
@@ -40,6 +40,7 @@ func CreateDB(t testing.TB, ctx context.Context, cfg serviceconfig.ConfigProvide
|
||||
"POSTGRES_USER": user,
|
||||
"POSTGRES_PASSWORD": pass,
|
||||
},
|
||||
Cmd: []string{"postgres", "-c", "max_connections=1000"},
|
||||
ExposedPorts: []string{port.Port()},
|
||||
WaitingFor: wait.ForAll(
|
||||
wait.ForExposedPort(),
|
||||
|
||||
@@ -269,6 +269,7 @@ func NormaliseAlias(fullName string) string {
|
||||
name := strings.ToLower(fullName)
|
||||
name = strings.ReplaceAll(name, "/", "_")
|
||||
name = strings.ReplaceAll(name, " ", "_")
|
||||
name = strings.ReplaceAll(name, "-", "_")
|
||||
return name
|
||||
}
|
||||
|
||||
|
||||
@@ -90,7 +90,7 @@ func TestCreateFullDependencies(t *testing.T) {
|
||||
cleanup()
|
||||
}
|
||||
|
||||
func TestDepNetworkGet(t *testing.T) {
|
||||
func TestCreateFullNetwork(t *testing.T) {
|
||||
if testing.Short() {
|
||||
t.Skip("Skipping long test in short mode")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user