21 lines
375 B
Go
21 lines
375 B
Go
package long_poller_go
|
|
|
|
import (
|
|
"loafle.com/overflow/agent_api/observer"
|
|
"loafle.com/overflow/agent_api/observer/messages"
|
|
"testing"
|
|
"time"
|
|
)
|
|
|
|
func TestPolling(t *testing.T) {
|
|
poller := &Poller{}
|
|
poller.start()
|
|
}
|
|
|
|
func TestTotal(t *testing.T) {
|
|
time.Sleep(time.Second * 5)
|
|
|
|
observer.Notify(messages.CFG_LOADED, "") //CONFIG LOCATION
|
|
time.Sleep(time.Second * 100)
|
|
}
|