From c91f204ca44f24cdb70c82f03427ce8cecbb6f1d Mon Sep 17 00:00:00 2001 From: Prabhjot Singh Sethi Date: Thu, 17 Apr 2025 21:37:32 +0000 Subject: [PATCH] Address test case failure due to missing error type check Signed-off-by: Prabhjot Singh Sethi --- reconciler/reconciler_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reconciler/reconciler_test.go b/reconciler/reconciler_test.go index a4b6116..0b4dba1 100644 --- a/reconciler/reconciler_test.go +++ b/reconciler/reconciler_test.go @@ -67,7 +67,7 @@ func performMongoSetup() { col := s.GetCollection("collection-reconciler") _, err = col.DeleteMany(context.Background(), bson.D{}) - if err != nil { + if err != nil && !errors.IsNotFound(err) { log.Panicf("Setup: failed to cleanup existing entries: %s", err) }