From 737d74f0e6f998b3de9df5e50343100723c5ddc0 Mon Sep 17 00:00:00 2001 From: qrnvttrl Date: Wed, 14 Feb 2024 14:49:14 +0100 Subject: [PATCH] fixed error --- cmd/internal/database/localfs/localfs.go | 5 ++--- integration/main_test.go | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/cmd/internal/database/localfs/localfs.go b/cmd/internal/database/localfs/localfs.go index 7a861d3..9a52635 100644 --- a/cmd/internal/database/localfs/localfs.go +++ b/cmd/internal/database/localfs/localfs.go @@ -12,9 +12,8 @@ import ( ) type LocalFS struct { - datadir string - fileNames []string - log *slog.Logger + datadir string + log *slog.Logger } func New(log *slog.Logger, datadir string) *LocalFS { diff --git a/integration/main_test.go b/integration/main_test.go index 0f7c774..2b376a3 100644 --- a/integration/main_test.go +++ b/integration/main_test.go @@ -427,7 +427,7 @@ func execCommand(ctx context.Context, containerName string, cmd []string) (strin if err != nil { return "", "", err } - err = exec.StreamWithContext(context.Background(), remotecommand.StreamOptions{ + err = exec.StreamWithContext(ctx, remotecommand.StreamOptions{ Stdin: nil, Stdout: &stdout, Stderr: &stderr,