Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: fix typo (#3465)

ZhengXa0b870c49a5b
diff --git a/tests/schema_update_test.go b/tests/schema_update_test.go
index 01a7366825..7bfaf7782f 100644
--- a/tests/schema_update_test.go
+++ b/tests/schema_update_test.go
@@ -1298,7 +1298,7 @@ func TestWildcardInVCSFilePathTemplate(t *testing.T) {
)
a.NoError(err)
- environment, err := ctl.createEnvrionment(api.EnvironmentCreate{
+ environment, err := ctl.createEnvironment(api.EnvironmentCreate{
Name: test.envName,
})
a.NoError(err)
diff --git a/tests/tests.go b/tests/tests.go
index 4b54748bce..4b7d691da1 100644
--- a/tests/tests.go
+++ b/tests/tests.go
@@ -531,7 +531,7 @@ func (ctl *controller) patchProject(projectPatch api.ProjectPatch) error {
return nil
}
-func (ctl *controller) createEnvrionment(environmentCreate api.EnvironmentCreate) (*api.Environment, error) {
+func (ctl *controller) createEnvironment(environmentCreate api.EnvironmentCreate) (*api.Environment, error) {
buf := new(bytes.Buffer)
if err := jsonapi.MarshalPayload(buf, &environmentCreate); err != nil {
return nil, errors.Wrap(err, "failed to marshal environment create")