mirror of
https://github.com/restic/restic.git
synced 2026-11-23 07:10:52 +00:00
Add more error checks
This commit is contained in:
1 parent
cbd88c457a
commit
200f09522d
11 files changed
+63
-24
No files matched your search
@@ -11,7 +11,8 @@ import (
|
||||
func TestEmptySnapshotGroupJSON(t *testing.T) {
|
||||
for _, grouped := range []bool{false, true} {
|
||||
var w strings.Builder
|
||||
printSnapshotGroupJSON(&w, nil, grouped)
|
||||
err := printSnapshotGroupJSON(&w, nil, grouped)
|
||||
rtest.OK(t, err)
|
||||
|
||||
rtest.Equals(t, "[]", strings.TrimSpace(w.String()))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user