jobqueue: add channel to workers

Stores the channel alongside the worker.
This commit is contained in:
Sanne Raymaekers 2024-04-19 11:52:21 +02:00
parent ede798ae6c
commit 1b4935c325
9 changed files with 46 additions and 26 deletions

View file

@ -65,7 +65,7 @@ func executeTests(m *testing.M) int {
fixture := rpmmd_mock.BaseFixture(path.Join(tmpdir, "/jobs"), test_distro.TestDistro1Name, test_distro.TestArchName)
defer fixture.StoreFixture.Cleanup()
_, err = fixture.Workers.RegisterWorker(fixture.StoreFixture.HostArchName)
_, err = fixture.Workers.RegisterWorker("", fixture.StoreFixture.HostArchName)
if err != nil {
panic(err)
}