Skip to content

Commit

Permalink
Fix broken unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fgrosse committed Apr 4, 2023
1 parent 13f9a37 commit bdd1ddd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ contexts:
- localhost:9092
`

expected := Configuration{
expected := &Configuration{
APIVersion: "v1",
CurrentContext: "staging",
PreviousContext: "prod",
Expand Down Expand Up @@ -64,7 +64,7 @@ bar: baz

r := strings.NewReader(input)
_, err := LoadConfiguration(r)
assert.EqualError(t, err, "yaml: unmarshal errors:\n line 2: field foo not found in type cmd.Configuration\n line 3: field bar not found in type cmd.Configuration")
assert.EqualError(t, err, "yaml: unmarshal errors:\n line 2: field foo not found in type pkg.Configuration\n line 3: field bar not found in type pkg.Configuration")
}

func TestSaveConfiguration(t *testing.T) {
Expand Down

0 comments on commit bdd1ddd

Please sign in to comment.