Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
flotter committed Oct 14, 2024
1 parent 95006b8 commit 234045d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions client/plan_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ services:
"label": "foo",
"format": "yaml",
"layer": layerYAML,
"inner": false,
})
}
}
Expand Down
1 change: 1 addition & 0 deletions internals/cli/cmd_add_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ services:
"label": "foo",
"format": "yaml",
"layer": layerYAML,
"inner": false,
})
fmt.Fprint(w, `{
"type": "sync",
Expand Down
2 changes: 1 addition & 1 deletion internals/overlord/servstate/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1707,7 +1707,7 @@ func (s *S) planChanged(c *C) {

func (s *S) planAddLayer(c *C, layerYAML string) {
cnt := len(s.plan.Layers)
layer, err := plan.ParseLayer(cnt, fmt.Sprintf("testPlanLayer%v", cnt), []byte(layerYAML))
layer, err := plan.ParseLayer(cnt, fmt.Sprintf("test-plan-layer-%v", cnt), []byte(layerYAML))
c.Assert(err, IsNil)
// Resolve {{.NotifyDoneCheck}}
s.insertDoneChecks(c, layer)
Expand Down

0 comments on commit 234045d

Please sign in to comment.