diff --git a/lorry/binding/mongodb/mongodb_test.go b/lorry/binding/mongodb/mongodb_test.go index 8f4aafe965d..c1dfbad8f5b 100644 --- a/lorry/binding/mongodb/mongodb_test.go +++ b/lorry/binding/mongodb/mongodb_test.go @@ -45,6 +45,7 @@ func TestGetRole(t *testing.T) { primitive.E{Key: "_id", Value: 0}, primitive.E{Key: "state", Value: 1}, primitive.E{Key: "stateStr", Value: "PRIMARY"}, + primitive.E{Key: "self", Value: true}, }, }}, })