libcni: Fixed tests that were checking error strings.
authorAvinash Sridharan <avinash@mesosphere.com>
Tue, 4 Apr 2017 16:49:48 +0000 (16:49 +0000)
committerAvinash Sridharan <avinash@mesosphere.com>
Wed, 5 Apr 2017 21:40:24 +0000 (21:40 +0000)
commitd42796378487ff0e8ace87ed76ffdd63ecd7b949
tree7d05e5a9c6ec8e5df2a883c1e41a49113009248a
parent5b0d6a0c8f231e218607d473b9a2169fadb82432
libcni: Fixed tests that were checking error strings.

Checking error strings makes these tests flaky, especially if the
error string is changed in libcni. Have gone ahead an introduced a new
error type `NoConfigsFoundError` and the Match is against the error
type making it more deterministic.
libcni/conf_test.go