mirror of
https://github.com/tickstep/aliyunpan.git
synced 2025-02-02 21:27:15 +08:00
add bolt delete test
This commit is contained in:
parent
884d8d356c
commit
6ce355ead8
@ -312,3 +312,14 @@ func TestSyncDbAdd(t *testing.T) {
|
||||
// StatusUpdateTime: "",
|
||||
//})
|
||||
}
|
||||
|
||||
func TestSyncDbClear(t *testing.T) {
|
||||
b := NewSyncFileDb("D:\\smb\\feny\\goprojects\\dev\\sync.bolt")
|
||||
b.Open()
|
||||
defer b.Close()
|
||||
|
||||
files, _ := b.GetFileList(SyncFileStatusSuccess)
|
||||
for _, file := range files {
|
||||
b.Delete(file.Id())
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user