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
1 changed files with 2 additions and 0 deletions

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()