fix(e2e): 修复 compression_e2e_test.go 的 import 语法错误
将函数内的 import 语句移到文件顶部的 import 块中。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
5574339d28
commit
7c67c93ca6
@ -18,6 +18,7 @@ import (
|
||||
"fmt"
|
||||
"io"
|
||||
"net/http"
|
||||
"os"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
@ -274,7 +275,6 @@ func writeFileBytesWithPerm(path string, content []byte, perm uint32) error {
|
||||
}
|
||||
|
||||
func writeFileWithPerm(path string, content []byte, perm uint32) error {
|
||||
import "os"
|
||||
return os.WriteFile(path, content, os.FileMode(perm))
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user