Moved the polling of data from the webgui to its own dedicated poller.

This should simplify testing of webgui.
This commit is contained in:
Hendrik van Wyk
2015-02-28 15:14:15 +02:00
parent 2b63a81cec
commit 3cd2faf3ef
6 changed files with 239 additions and 57 deletions

View File

@@ -62,13 +62,13 @@ func TestWebGui(t *testing.T) {
}
type templateTest struct {
input *statusError
input *statusProcessed
output *TemplateInput
}
var templateInputTests = []templateTest{
{
input: &statusError{
input: &statusProcessed{
status: datasource.MultiplusStatus{
OutCurrent: 2.0,
InCurrent: 2.3,