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

@ -19,6 +19,7 @@ package tests
import (
"context"
"fmt"
"runtime"
"github.com/bradenaw/juniper/stream"
@ -34,15 +35,17 @@ func (t *testCtx) withClient(ctx context.Context, username string, fn func(conte
return err
}
defer c.Close()
if err := fn(ctx, c); err != nil {
return err
return fmt.Errorf("failed to execute with client: %w", err)
}
if err := c.AuthDelete(ctx); err != nil {
return err
return fmt.Errorf("failed to delete auth: %w", err)
}
return c.Close()
return nil
}
func (t *testCtx) createMessages(ctx context.Context, username, addrID string, req []liteapi.ImportReq) error {