Exemple #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)
}
Exemple #2
0
func TestAgentClient(t *testing.T) {
	agent := NewAgent()

	assert.NotNil(t, agent.client)
}