mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-21 12:57:22 +08:00
go fmt
This commit is contained in:
@@ -73,14 +73,14 @@ func TestRandomWrites(t *testing.T) {
|
||||
|
||||
data := make([]byte, 1024)
|
||||
|
||||
for i:=0;i<1024;i++ {
|
||||
for i := 0; i < 1024; i++ {
|
||||
|
||||
start, stop := rand.Intn(len(data)), rand.Intn(len(data))
|
||||
if start > stop {
|
||||
start,stop = stop, start
|
||||
start, stop = stop, start
|
||||
}
|
||||
|
||||
rand.Read(data[start:stop+1])
|
||||
rand.Read(data[start : stop+1])
|
||||
|
||||
c.AddInterval(data[start:stop+1], int64(start))
|
||||
|
||||
|
@@ -95,7 +95,6 @@ func TestFsCacheMove(t *testing.T) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
func TestFsCacheMove2(t *testing.T) {
|
||||
|
||||
cache := newFsCache(nil)
|
||||
@@ -114,4 +113,3 @@ func TestFsCacheMove2(t *testing.T) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user