Fix timeout and unresponsive cameras being detected as successful & add error message

Update unit tests

Fix deadlock in libcurl for tests to stop failing randomly
This commit is contained in:
Brendan LE GLAUNEC
2017-10-18 08:43:02 +02:00
committed by Brendan Le Glaunec
parent 216d30fd45
commit 89647ae457
4 changed files with 36 additions and 16 deletions
+4
View File
@@ -60,6 +60,7 @@ func TestAttackCredentials(t *testing.T) {
log: true,
expectedStreams: fakeTargets,
expectedErrMsg: "no credentials found",
},
// Valid baseline without logs
{
@@ -69,6 +70,7 @@ func TestAttackCredentials(t *testing.T) {
log: false,
expectedStreams: fakeTargets,
expectedErrMsg: "no credentials found",
},
// TODO: Refacto and make tests with all possible error cases
}
@@ -134,6 +136,7 @@ func TestAttackRoute(t *testing.T) {
log: true,
expectedStreams: fakeTargets,
expectedErrMsg: "no routes found",
},
// Valid baseline without logs
{
@@ -143,6 +146,7 @@ func TestAttackRoute(t *testing.T) {
log: false,
expectedStreams: fakeTargets,
expectedErrMsg: "no routes found",
},
// TODO: Refacto and make tests with all possible error cases
}