Skip to content

Commit

Permalink
Fix unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangpengcheng committed Jan 16, 2024
1 parent 5ab36b0 commit 3877f0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/spec/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ func TestGetSourceRunnerImage(t *testing.T) {
func TestMakeGoFunctionCommand(t *testing.T) {
function := makeGoFunctionSample(TestFunctionName)
commands := MakeGoFunctionCommand("", "/pulsar/go-func", function)
assert.Equal(t, commands[0], "sh")
assert.Equal(t, commands[0], "bash")
assert.Equal(t, commands[1], "-c")
assert.True(t, strings.HasPrefix(commands[2], "SHARD_ID=${POD_NAME##*-} && echo shardId=${SHARD_ID}"))
innerCommands := strings.Split(commands[2], "&&")
Expand Down

0 comments on commit 3877f0f

Please sign in to comment.