Skip to content

Commit 14971c1

Browse files
fix: rename pointer function for clarity in TestGenerateNewService_Envs
1 parent 27f622c commit 14971c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/knative/deployer_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ func setupRegistry(t *testing.T) http.RoundTripper {
296296
// function are correctly included in the generated Knative Service container spec.
297297
// This is a regression test for issue #3514.
298298
func TestGenerateNewService_Envs(t *testing.T) {
299-
ptr := func(s string) *string { return &s }
299+
strPtr := func(s string) *string { return &s }
300300

301301
f := fn.Function{
302302
Name: "test-func",
@@ -305,8 +305,8 @@ func TestGenerateNewService_Envs(t *testing.T) {
305305
},
306306
Run: fn.RunSpec{
307307
Envs: fn.Envs{
308-
{Name: ptr("MYVAR"), Value: ptr("myvalue")},
309-
{Name: ptr("OTHER"), Value: ptr("othervalue")},
308+
{Name: strPtr("MYVAR"), Value: strPtr("myvalue")},
309+
{Name: strPtr("OTHER"), Value: strPtr("othervalue")},
310310
},
311311
},
312312
}

0 commit comments

Comments
 (0)