mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-05-08 00:33:00 +03:00
Pull request 1781: 5627-fix-migration
Updates #5627. Squashed commit of the following: commit 018ead11959efeaace5312b5990ad82b6fa1f72d Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Fri Mar 24 12:48:25 2023 +0300 home: fix more commit 4bc57a07412bfb7fb7e6c88c14037c567c94d373 Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Fri Mar 24 12:32:57 2023 +0300 home: fix statistics migration
This commit is contained in:
parent
8de994d077
commit
0bc3ef89ea
2 changed files with 41 additions and 5 deletions
internal/home
|
@ -729,7 +729,7 @@ func TestUpgradeSchema15to16(t *testing.T) {
|
|||
want: yobj{
|
||||
"statistics": map[string]any{
|
||||
"enabled": false,
|
||||
"interval": 0,
|
||||
"interval": 1,
|
||||
"ignored": []any{},
|
||||
},
|
||||
"dns": map[string]any{},
|
||||
|
@ -963,6 +963,11 @@ func TestUpgradeSchema19to20(t *testing.T) {
|
|||
want: timeutil.Duration{Duration: timeutil.Day},
|
||||
wantErr: "",
|
||||
name: "success",
|
||||
}, {
|
||||
ivl: 0,
|
||||
want: timeutil.Duration{Duration: timeutil.Day},
|
||||
wantErr: "",
|
||||
name: "success",
|
||||
}, {
|
||||
ivl: 0.25,
|
||||
want: 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue