0
0
Fork 0

clean up of unit test.

This commit is contained in:
Sreekanth Sivasankaran 2017-02-02 23:33:26 +05:30
parent c1d28bb2fc
commit 029d4c73d9
1 changed files with 0 additions and 13 deletions

View File

@ -185,19 +185,6 @@ func TestUnmarshalingSearchResult(t *testing.T) {
}
}
func verifyErrors(t *testing.T, actual, expected error) {
//success case.
if actual == nil && actual == expected {
return
}
//actual error doesn't match the expected error.
if actual != nil && expected != nil && actual.Error() != expected.Error() {
t.Error(actual)
} else if actual == nil {
t.Error("Expected -> " + expected.Error())
}
}
func TestFacetNumericDateRangeRequests(t *testing.T) {
var drMissingErr = fmt.Errorf("date range query must specify either start, end or both for range name 'testName'")
var nrMissingErr = fmt.Errorf("numeric range query must specify either min, max or both for range name 'testName'")