Remove double negative in register_test.go

Signed-off-by: Anant Prakash <anantprakashjsr@gmail.com>
This commit is contained in:
Anant Prakash 2018-03-15 19:29:11 +05:30
parent 5bbd593a48
commit c9e9e8d63c
No known key found for this signature in database
GPG key ID: C5D399F626523045

View file

@ -141,7 +141,7 @@ func TestEmptyCompletedFlows(t *testing.T) {
ret := fakeEmptySessions.GetCompletedStages(fakeSessionID)
// check for []
if !(len(ret) == 0 && ret != nil) {
if ret == nil || len(ret) != 0 {
t.Error("Empty Completed Flow Stages should be a empty slice: returned ", ret, ". Should be []")
}
}