chore: fix workspace setting tests

This commit is contained in:
johnnyjoy 2024-09-14 08:27:37 +08:00
parent 1da0752922
commit 759f7c6171

View file

@ -22,9 +22,10 @@ func TestWorkspaceSettingV1Store(t *testing.T) {
}, },
}) })
require.NoError(t, err) require.NoError(t, err)
list, err := ts.ListWorkspaceSettings(ctx, &store.FindWorkspaceSetting{}) setting, err := ts.GetWorkspaceSetting(ctx, &store.FindWorkspaceSetting{
Name: storepb.WorkspaceSettingKey_GENERAL.String(),
})
require.NoError(t, err) require.NoError(t, err)
require.Equal(t, 1, len(list)) require.Equal(t, workspaceSetting, setting)
require.Equal(t, workspaceSetting, list[0])
ts.Close() ts.Close()
} }