Skip to content

Commit 2dae8ec

Browse files
committed
state refresh should not error if the runtime is up to date.
1 parent cff0fe1 commit 2dae8ec

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

internal/runners/refresh/refresh.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ func (r *Refresh) Run(params *Params) error {
9292
}
9393

9494
if !needsUpdate {
95-
return locale.NewInputError("refresh_runtime_uptodate")
95+
r.out.Notice(locale.T("refresh_runtime_uptodate"))
96+
return nil
9697
}
9798

9899
rti, err := runtime_runbit.Update(r.prime, trigger.TriggerRefresh, runtime_runbit.WithoutHeaders(), runtime_runbit.WithIgnoreAsync())

test/integration/refresh_int_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func (suite *RefreshIntegrationTestSuite) TestRefresh() {
3939

4040
cp = ts.Spawn("refresh")
4141
cp.Expect("already up to date")
42-
cp.ExpectExitCode(1)
42+
cp.ExpectExitCode(0)
4343
}
4444

4545
func (suite *RefreshIntegrationTestSuite) TestJSON() {

0 commit comments

Comments
 (0)