fix: use c.So() in goroutines in config_reloader_test.go to prevent panic

Agent-Logs-Url: https://github.com/project-zot/zot/sessions/f62d5ee7-019e-44d7-9f21-c49f5724528a

Co-authored-by: rchincha <45800463+rchincha@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-05-19 01:35:05 +00:00
committed by GitHub
parent 55ec84b6ae
commit 6237274c0c
+5 -5
View File
@@ -79,7 +79,7 @@ func TestConfigReloader(t *testing.T) {
go func() {
err = cli.NewServerRootCmd().Execute()
So(err, ShouldBeNil)
c.So(err, ShouldBeNil)
}()
test.WaitTillServerReady(baseURL)
@@ -214,7 +214,7 @@ func TestConfigReloader(t *testing.T) {
go func() {
err = cli.NewServerRootCmd().Execute()
So(err, ShouldBeNil)
c.So(err, ShouldBeNil)
}()
test.WaitTillServerReady(baseURL)
@@ -352,7 +352,7 @@ func TestConfigReloader(t *testing.T) {
go func() {
err = cli.NewServerRootCmd().Execute()
So(err, ShouldBeNil)
c.So(err, ShouldBeNil)
}()
test.WaitTillServerReady(baseURL)
@@ -495,7 +495,7 @@ func TestConfigReloader(t *testing.T) {
go func() {
err = cli.NewServerRootCmd().Execute()
So(err, ShouldBeNil)
c.So(err, ShouldBeNil)
}()
test.WaitTillServerReady(baseURL)
@@ -643,7 +643,7 @@ func TestConfigReloader(t *testing.T) {
go func() {
err = cli.NewServerRootCmd().Execute()
So(err, ShouldBeNil)
c.So(err, ShouldBeNil)
}()
test.WaitTillServerReady(baseURL)