延长读写线程超时时间/增加相关测试用例

This commit is contained in:
GoEdgeLab
2024-04-30 17:24:08 +08:00
parent 6d4269defb
commit 06a8ec5dec
3 changed files with 50 additions and 1 deletions

View File

@@ -26,6 +26,8 @@ func ReadFile(filename string) (data []byte, err error) {
}
func WriteFile(filename string, data []byte, perm os.FileMode) (err error) {
WriterLimiter.Ack()
err = os.WriteFile(filename, data, perm)
WriterLimiter.Release()
return
}