1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-24 06:28:42 +01:00

chore: adds tests for store (#2751)

This commit is contained in:
Amir Raminfar
2024-02-03 09:06:05 -08:00
committed by GitHub
parent 1d4c162fba
commit 25cb3c4c53
3 changed files with 107 additions and 14 deletions

View File

@@ -1,6 +1,7 @@
package web
import (
"context"
"io/fs"
"net/http"
@@ -53,7 +54,7 @@ type handler struct {
func CreateServer(clients map[string]docker.Client, content fs.FS, config Config) *http.Server {
stores := make(map[string]*docker.ContainerStore)
for host, client := range clients {
stores[host] = docker.NewContainerStore(client)
stores[host] = docker.NewContainerStore(context.Background(), client)
}
handler := &handler{