Remove group all checks for accounts during startup

Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
This commit is contained in:
bcmmbaga
2024-11-22 18:07:23 +03:00
parent 2115e2c3f0
commit ea51ce876e
4 changed files with 30 additions and 26 deletions

View File

@@ -2662,3 +2662,13 @@ func TestSqlStore_SaveAccountSettings(t *testing.T) {
require.NoError(t, err)
require.Equal(t, settings, saveSettings)
}
func TestSqlStore_GetTotalAccounts(t *testing.T) {
store, cleanup, err := NewTestStoreFromSQL(context.Background(), "testdata/store.sql", t.TempDir())
t.Cleanup(cleanup)
require.NoError(t, err)
totalAccounts, err := store.GetTotalAccounts(context.Background(), LockingStrengthShare)
require.NoError(t, err)
require.Equal(t, int64(1), totalAccounts)
}