From 1c40a387afd420743e3e7fb066717ef2b375bb7e Mon Sep 17 00:00:00 2001 From: Nadezhda Savchenko Date: Thu, 22 Feb 2024 14:29:46 +0300 Subject: [PATCH] Fix test --- ytsaurus_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ytsaurus_test.go b/ytsaurus_test.go index b1ce4a3..32eb425 100644 --- a/ytsaurus_test.go +++ b/ytsaurus_test.go @@ -82,7 +82,7 @@ func TestGroups(t *testing.T) { defer func() { require.NoError(t, ytLocal.Stop()) }() yt := getYtsaurus(t, ytLocal) - groupsInitial, err := yt.GetGroupsWithMembers() + groupsInitial, err := yt.GetGroupsWithMembers(AzureSourceType) require.NoError(t, err) require.Empty(t, groupsInitial) @@ -108,7 +108,7 @@ func TestGroups(t *testing.T) { err = yt.AddMember(managedOleg.Username, managedOlegsGroup.Name) require.NoError(t, err) - groupsAfterCreate, err := yt.GetGroupsWithMembers() + groupsAfterCreate, err := yt.GetGroupsWithMembers(AzureSourceType) require.NoError(t, err) members := NewStringSet() members.Add(managedOleg.Username) @@ -128,7 +128,7 @@ func TestGroups(t *testing.T) { err = yt.RemoveMember(managedOleg.Username, managedOlegsGroup.Name) require.NoError(t, err) - groupsAfterRemoveMember, err := yt.GetGroupsWithMembers() + groupsAfterRemoveMember, err := yt.GetGroupsWithMembers(AzureSourceType) require.NoError(t, err) require.Equal(t, []YtsaurusGroupWithMembers{ { @@ -146,7 +146,7 @@ func TestGroups(t *testing.T) { err = yt.RemoveGroup(managedOlegsGroup.Name) require.NoError(t, err) - groupsAfterRemove, err := yt.GetGroupsWithMembers() + groupsAfterRemove, err := yt.GetGroupsWithMembers(AzureSourceType) require.NoError(t, err) require.Empty(t, groupsAfterRemove)