gofmt: 清理 admin/executor 测试文件的对齐空格
这两个文件在 HEAD 上就未通过 gofmt, 但 go test 不检查 gofmt, 所以一直没暴露. 修一下让 gofmt -l . 干净, 否则新加的 commit 之前都得先 stash. 纯格式变更, 无逻辑变化. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -29,8 +29,8 @@ func TestRun_FakeBinary(t *testing.T) {
|
||||
defer cancel()
|
||||
|
||||
res, err := Run(ctx, SparkSubmitOpts{
|
||||
Binary: "/bin/echo",
|
||||
Args: []string{"--master", "yarn; rm -rf /tmp/this-should-not-exist"},
|
||||
Binary: "/bin/echo",
|
||||
Args: []string{"--master", "yarn; rm -rf /tmp/this-should-not-exist"},
|
||||
Timeout: 3 * time.Second,
|
||||
})
|
||||
if err != nil {
|
||||
@@ -54,8 +54,8 @@ func TestRun_NonZeroExit(t *testing.T) {
|
||||
t.Skip("uses unix binary")
|
||||
}
|
||||
res, err := Run(context.Background(), SparkSubmitOpts{
|
||||
Binary: "/bin/sh",
|
||||
Args: []string{"-c", "exit 7"},
|
||||
Binary: "/bin/sh",
|
||||
Args: []string{"-c", "exit 7"},
|
||||
Timeout: 3 * time.Second,
|
||||
})
|
||||
if err == nil {
|
||||
|
||||
Reference in New Issue
Block a user