mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-20 01:06:45 +00:00
Remove group all checks for accounts during startup
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user