Fix TestGetUsers().

This commit is contained in:
Gucheng Wang
2021-12-18 12:48:53 +08:00
parent 16cc64f08d
commit cb625b3fa2
3 changed files with 5 additions and 5 deletions

View File

@ -21,9 +21,10 @@ import (
func TestGetUsers(t *testing.T) {
InitConfig()
InitAdapter()
syncer := getEnabledSyncerForOrganization("built-in")
syncers := GetSyncers("admin")
syncer := syncers[0]
syncer.initAdapter()
users := syncer.getUsersOriginal()
for _, user := range users {
fmt.Printf("%v\n", user)
@ -32,7 +33,6 @@ func TestGetUsers(t *testing.T) {
func TestSyncUsers(t *testing.T) {
InitConfig()
InitAdapter()
RunSyncUsersJob()
}