From f8b419a4c19dfb09ba47d91c68162b32a7044181 Mon Sep 17 00:00:00 2001 From: Brian Meek Date: Fri, 9 Sep 2022 17:45:01 -0700 Subject: [PATCH] Fix test checking which clients connected Signed-off-by: Brian Meek --- userapi/storage/tables/stats_table_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/userapi/storage/tables/stats_table_test.go b/userapi/storage/tables/stats_table_test.go index 11521c8b0..7367c06dc 100644 --- a/userapi/storage/tables/stats_table_test.go +++ b/userapi/storage/tables/stats_table_test.go @@ -283,6 +283,7 @@ func Test_UserStatistics(t *testing.T) { t.Fatalf("unable to update daily visits stats: %v", err) } } + gotStats, _, err := statsDB.UserStatistics(ctx, nil) if err != nil { t.Fatalf("unexpected error: %v", err) @@ -300,10 +301,10 @@ func Test_UserStatistics(t *testing.T) { }, R30UsersV2: map[string]int64{ "ios": 0, - "android": 1, - "web": 1, + "android": 0, + "web": 0, "electron": 0, - "all": 2, + "all": 0, }, AllUsers: 6, NonBridgedUsers: 5,