Other: Bump liteapi version to fix goroutine leaks

This commit is contained in:
James Houlahan
2022-10-21 12:00:35 +02:00
parent 472b96795f
commit 974735d415
5 changed files with 11 additions and 10 deletions

View File

@ -126,7 +126,7 @@ func withAccount(tb testing.TB, s *server.Server, username, password string, ema
func withUser(tb testing.TB, ctx context.Context, _ *server.Server, m *liteapi.Manager, username, password string, fn func(*User)) { //nolint:unparam,revive
client, apiAuth, err := m.NewClientWithLogin(ctx, username, []byte(password))
require.NoError(tb, err)
defer func() { require.NoError(tb, client.Close()) }()
defer client.Close()
apiUser, err := client.GetUser(ctx)
require.NoError(tb, err)