Remove unnecessary printing
This commit is contained in:
parent
9e663d74da
commit
9fa5ea847d
|
@ -1,7 +1,6 @@
|
||||||
package trig
|
package trig
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"math"
|
"math"
|
||||||
|
|
||||||
"github.com/influxdb/telegraf/plugins"
|
"github.com/influxdb/telegraf/plugins"
|
||||||
|
@ -38,8 +37,6 @@ func (s *Trig) Gather(acc plugins.Accumulator) error {
|
||||||
s.x += 1.0
|
s.x += 1.0
|
||||||
acc.AddFields("trig", fields, tags)
|
acc.AddFields("trig", fields, tags)
|
||||||
|
|
||||||
fmt.Printf("%#v\n", fields)
|
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
package trig
|
package trig
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"math"
|
"math"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
@ -28,8 +27,6 @@ func TestTrig(t *testing.T) {
|
||||||
fields["sine"] = sine
|
fields["sine"] = sine
|
||||||
fields["cosine"] = cosine
|
fields["cosine"] = cosine
|
||||||
|
|
||||||
fmt.Printf("%#v\n", fields)
|
|
||||||
|
|
||||||
assert.True(t, acc.CheckFieldsValue("trig", fields))
|
assert.True(t, acc.CheckFieldsValue("trig", fields))
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue