Skip to content

Commit

Permalink
Simplified a test
Browse files Browse the repository at this point in the history
  • Loading branch information
diogo-nogueira-freiheit committed Nov 6, 2024
1 parent cf57daf commit 1fcccc0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/db/db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1946,20 +1946,19 @@ func TestReadWriteEnvironment(t *testing.T) {
EnvsToWrite: []EnvAndConfig{
{
EnvironmentName: "development",
EnvironmentConfig: testutil.MakeEnvConfigLatestWithGroup(nil, conversion.FromString("development-group")), // "elaborate config" being the env group
EnvironmentConfig: testutil.MakeEnvConfigLatest(nil),
Applications: []string{"zapp", "app1", "capp"},
},
},
EnvToQuery: "development",
ExpectedEntry: &DBEnvironment{
Version: 1,
Name: "development",
Config: testutil.MakeEnvConfigLatestWithGroup(nil, conversion.FromString("development-group")),
Config: testutil.MakeEnvConfigLatest(nil),
Applications: []string{"app1", "capp", "zapp"},
},
},
}

for _, tc := range testCases {
tc := tc
t.Run(tc.Name, func(t *testing.T) {
Expand Down Expand Up @@ -1996,7 +1995,6 @@ func TestReadWriteEnvironment(t *testing.T) {
})
}
}

func TestReadWriteEslEvent(t *testing.T) {
const envName = "dev"
const appName = "my-app"
Expand Down

0 comments on commit 1fcccc0

Please sign in to comment.