Skip to content

Commit

Permalink
cleanup test
Browse files Browse the repository at this point in the history
  • Loading branch information
steviebps committed Apr 22, 2021
1 parent 527c557 commit fcc9ccd
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pkg/chamber_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ func TestInheritWith(t *testing.T) {
},
},
}
top := &Chamber{
Name: "TOP",
middle := &Chamber{
Name: "MIDDLE",
Toggles: map[string]*Toggle{
"toggle1": {
Name: "toggle1",
Expand All @@ -65,8 +65,8 @@ func TestInheritWith(t *testing.T) {
},
},
}
middle := &Chamber{
Name: "MIDDLE",
top := &Chamber{
Name: "TOP",
Toggles: map[string]*Toggle{
"toggle1": {
Name: "toggle1",
Expand All @@ -77,7 +77,6 @@ func TestInheritWith(t *testing.T) {
}

middle.InheritWith(top.Toggles)
// should not inherit an already existent key
bottom.InheritWith(middle.Toggles)

if len(middle.Toggles) != 1 {
Expand Down

0 comments on commit fcc9ccd

Please sign in to comment.