Fix test checking which clients connected

Signed-off-by: Brian Meek <brian@hntlabs.com>
This commit is contained in:
Brian Meek 2022-09-09 17:45:01 -07:00
parent 45c604f563
commit f8b419a4c1
No known key found for this signature in database
GPG key ID: ACBD71263BF42D00

View file

@ -283,6 +283,7 @@ func Test_UserStatistics(t *testing.T) {
t.Fatalf("unable to update daily visits stats: %v", err) t.Fatalf("unable to update daily visits stats: %v", err)
} }
} }
gotStats, _, err := statsDB.UserStatistics(ctx, nil) gotStats, _, err := statsDB.UserStatistics(ctx, nil)
if err != nil { if err != nil {
t.Fatalf("unexpected error: %v", err) t.Fatalf("unexpected error: %v", err)
@ -300,10 +301,10 @@ func Test_UserStatistics(t *testing.T) {
}, },
R30UsersV2: map[string]int64{ R30UsersV2: map[string]int64{
"ios": 0, "ios": 0,
"android": 1, "android": 0,
"web": 1, "web": 0,
"electron": 0, "electron": 0,
"all": 2, "all": 0,
}, },
AllUsers: 6, AllUsers: 6,
NonBridgedUsers: 5, NonBridgedUsers: 5,