Ejemplo n.º 1
0
func TestAgentClientWithKeepAlive(t *testing.T) {
	// Unfortunately the KeepAlive is obfuscated in the client, so we can't really
	// assert this worked
	agent := NewAgent(KeepAlive(time.Second))

	assert.NotNil(t, agent.client)
}
Ejemplo n.º 2
0
func TestAgentClient(t *testing.T) {
	agent := NewAgent()

	assert.NotNil(t, agent.client)
}