Add error logging and clarifying comment based on code review feedback

Co-authored-by: ReneWerner87 <7063188+ReneWerner87@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-11 07:58:56 +00:00
parent 04fdf7b416
commit 4a22568eac

View File

@@ -320,8 +320,10 @@ func (s *StorageTestSuite[T, D, C]) TestGetExpired() {
s.Eventually(func() bool {
val, err := s.store.Get("temp_key")
if err != nil {
s.T().Logf("Unexpected error while checking if key expired: %v", err)
return false
}
// Storage implementations should return nil/empty slice for expired/non-existent keys
return len(val) == 0
}, 2*time.Second, 100*time.Millisecond, "Key should expire")
}