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

fix: fixes an edge case where a container might get stuck in created state (#3338)

This commit is contained in:
Amir Raminfar
2024-10-21 13:14:50 -07:00
committed by GitHub
parent 4026e927f5
commit f3ab541ad1
4 changed files with 48 additions and 26 deletions

View File

@@ -71,7 +71,7 @@ func Test_createRoutes_version(t *testing.T) {
fs := afero.NewMemMapFs()
require.NoError(t, afero.WriteFile(fs, "index.html", []byte("index page"), 0644), "WriteFile should have no error.")
handler := createHandler(nil, afero.NewIOFS(fs), Config{Base: "/", Version: "dev", Authorization: Authorization{Provider: NONE}})
req, err := http.NewRequest("GET", "/version", nil)
req, err := http.NewRequest("GET", "/api/version", nil)
require.NoError(t, err, "NewRequest should not return an error.")
rr := httptest.NewRecorder()