mirror of
https://github.com/cubefs/cubefs.git
synced 2026-08-02 02:00:56 +00:00
feat(reconstruct): gofmt by gofumpt.
Signed-off-by: shuqiang-zheng <zhengshuqiang@oppo.com>
This commit is contained in:
parent
8baaee5ad9
commit
0ebf6ffc26
@ -127,6 +127,8 @@ func createDefaultMasterServerForTest() *Server {
|
||||
}`
|
||||
|
||||
testServer, err := createMasterServer(cfgJSON)
|
||||
testServer.cluster.cfg.volForceDeletion = true
|
||||
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
@ -689,7 +691,7 @@ func delVol(name string, t *testing.T) {
|
||||
|
||||
vol, err := server.cluster.getVol(name)
|
||||
assert.True(t, err == nil)
|
||||
t.Logf("vol statu %v", vol.Status)
|
||||
|
||||
assert.True(t, vol.Status == proto.VolStatusMarkDelete)
|
||||
}
|
||||
|
||||
|
||||
@ -115,8 +115,8 @@ func TestCreateColdVol(t *testing.T) {
|
||||
require.EqualValues(t, defaultReplicaNum, vol.dpReplicaNum)
|
||||
require.EqualValues(t, 0, vol.domainId)
|
||||
|
||||
delVol(volName1, t)
|
||||
// time.Sleep(30 * time.Second)
|
||||
delVol(volName, t)
|
||||
time.Sleep(30 * time.Second)
|
||||
|
||||
req[nameKey] = volName2
|
||||
req[volTypeKey] = proto.VolumeTypeCold
|
||||
|
||||
Loading…
Reference in New Issue
Block a user