Skip to content

Commit

Permalink
fix(test): Updated renamed method
Browse files Browse the repository at this point in the history
  • Loading branch information
rhuss committed Jul 22, 2019
1 parent d85f841 commit c6a7997
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/kn/commands/service/service_update_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func fakeServiceUpdate(original *v1alpha1.Service, args []string, sync bool) (
func TestServiceUpdateImageSync(t *testing.T) {
orig := newEmptyService()

template, err := servinglib.GetRevisionTemplate(orig)
template, err := servinglib.RevisionTemplateOfService(orig)
if err != nil {
t.Fatal(err)
}
Expand All @@ -104,7 +104,7 @@ func TestServiceUpdateImageSync(t *testing.T) {
assert.NilError(t, err)
assert.Assert(t, action.Matches("update", "services"))

template, err = servinglib.GetRevisionTemplate(updated)
template, err = servinglib.RevisionTemplateOfService(updated)
assert.NilError(t, err)

assert.Equal(t, template.Spec.DeprecatedContainer.Image, "gcr.io/foo/quux:xyzzy")
Expand Down

0 comments on commit c6a7997

Please sign in to comment.