From 5110b2f9762eca95d64a66c651ea55e3aa4f4898 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 15 Jul 2024 12:55:33 +0000 Subject: [PATCH] feat(import): allow to use tuples and tuple_file together --- internal/storetest/storedata.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/storetest/storedata.go b/internal/storetest/storedata.go index 737ca18c..e5b4ffd6 100644 --- a/internal/storetest/storedata.go +++ b/internal/storetest/storedata.go @@ -108,8 +108,10 @@ func (storeData *StoreData) LoadTuples(basePath string) error { tuples, err := tuplefile.ReadTupleFile(path.Join(basePath, storeData.TupleFile)) if err != nil { errs = fmt.Errorf("failed to process global tuple %s file due to %w", storeData.TupleFile, err) - } else { + } else if storeData.Tuples == nil { storeData.Tuples = tuples + } else { + storeData.Tuples = append(storeData.Tuples, tuples...) } }