Expose tempDirForge to be able to test full workflow

This commit is contained in:
Mustafa Gezen 2023-09-06 23:28:58 +02:00
parent 9ce1b9b229
commit 1ed6fd238f
Signed by: mustafa
GPG Key ID: DCDF010D946438C1

View File

@ -42,6 +42,7 @@ var (
//go:embed testdata/RPM-GPG-KEY-Rocky-8
rocky8GpgKey []byte
inmf *inMemoryForge
tempDirForge string
)
type UnitTestSuite struct {
@ -133,7 +134,7 @@ func TestMain(m *testing.M) {
gpgKeys = append(gpgKeys, keyRing...)
tempDirForge, err := os.MkdirTemp("", "test-forge-*")
tempDirForge, err = os.MkdirTemp("", "test-forge-*")
if err != nil {
panic(err)
}