From 15512475fb0921fccca71f56195408a85637749e Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Thu, 19 Jun 2025 17:02:00 +0200 Subject: [PATCH] integration/hsic: simplify PostgreSQL handling - just skip database extraction When tests use PostgreSQL, simply skip the database file extraction entirely instead of creating note files. Keep it clean and simple. --- integration/hsic/hsic.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/integration/hsic/hsic.go b/integration/hsic/hsic.go index 1049b730..9d82f761 100644 --- a/integration/hsic/hsic.go +++ b/integration/hsic/hsic.go @@ -638,11 +638,9 @@ func (t *HeadscaleInContainer) SaveMapResponses(savePath string) error { } func (t *HeadscaleInContainer) SaveDatabase(savePath string) error { - // If using PostgreSQL, create a note file instead of trying to extract SQLite + // If using PostgreSQL, skip database file extraction if t.postgres { - notePath := path.Join(savePath, t.hostname+".db-note") - note := "This test used PostgreSQL - no SQLite database file available.\nDatabase data is stored in the postgres container." - return os.WriteFile(notePath, []byte(note), 0644) + return nil } tarFile, err := t.FetchPath("/tmp/integration_test_db.sqlite3")