lib/db: Report number of repaired items from checkGlobal (#7329)
This commit is contained in:
+3
-1
@@ -513,8 +513,10 @@ func TestCheckGlobals(t *testing.T) {
|
||||
}
|
||||
|
||||
// Clean up global entry of the now missing file
|
||||
if err := db.checkGlobals([]byte(fs.folder)); err != nil {
|
||||
if repaired, err := db.checkGlobals([]byte(fs.folder)); err != nil {
|
||||
t.Fatal(err)
|
||||
} else if repaired != 1 {
|
||||
t.Error("Expected 1 repaired global item, got", repaired)
|
||||
}
|
||||
|
||||
// Check that the global entry is gone
|
||||
|
||||
Reference in New Issue
Block a user