Skip to content

Commit 0f5719a

Browse files
Update upgrade tests and remove unneeded path presence assertion.
1 parent f207303 commit 0f5719a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

service/agentconf.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ func (s *systemdServiceManager) CreateAgentConf(agentName string, dataDir string
207207
kind,
208208
name,
209209
dataDir,
210-
paths.MustSucceed(srvPath, fmt.Errorf("path %s does not exist", srvPath)))
210+
srvPath)
211211
return AgentConf(info, renderer), nil
212212
}
213213

@@ -315,7 +315,7 @@ func startAgent(name string, kind AgentKind, dataDir string, series string) (err
315315
kind,
316316
name,
317317
dataDir,
318-
paths.MustSucceed(srvPath, fmt.Errorf("path %s does not exist", srvPath)),
318+
srvPath,
319319
)
320320
conf := AgentConf(info, renderer)
321321
svcName := serviceName(name)

upgrades/steps_245_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type steps245Suite struct {
2020

2121
var _ = gc.Suite(&steps245Suite{})
2222

23-
func (s *steps245Suite) TestCorrectServiceFileLogPath(c *gc.C) {
24-
step := findStep(c, v245, "update exec.start.sh log path if not correct")
23+
func (s *steps245Suite) TestCorrectServiceLogFilePath(c *gc.C) {
24+
step := findStep(c, v245, "update exec.start.sh log path if incorrect")
2525
c.Assert(step.Targets(), jc.DeepEquals, []upgrades.Target{upgrades.AllMachines})
2626
}

upgrades/upgrade_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ func (s *upgradeSuite) TestStateUpgradeOperationsVersions(c *gc.C) {
654654
func (s *upgradeSuite) TestUpgradeOperationsVersions(c *gc.C) {
655655
versions := extractUpgradeVersions(c, (*upgrades.UpgradeOperations)())
656656
c.Assert(versions, gc.DeepEquals, []string{
657-
"2.0.0", "2.2.0", "2.4.0",
657+
"2.0.0", "2.2.0", "2.4.0", "2.4.5",
658658
})
659659
}
660660

0 commit comments

Comments
 (0)