1
0
mirror of https://gitlab.crans.org/nounous/ghostream.git synced 2024-12-22 15:02:19 +00:00

Add empty configuration in Web Handler test

This commit is contained in:
Yohann D'ANELLO 2020-10-03 13:28:54 +02:00
parent 94224edfba
commit 8da60ebdcc

View File

@ -12,6 +12,8 @@ func TestViewerPageGET(t *testing.T) {
t.Errorf("Failed to load templates: %v", err)
}
cfg = &Options{}
// Test GET request
r, _ := http.NewRequest("GET", "/", nil)
w := httptest.NewRecorder()