summaryrefslogtreecommitdiffstats
path: root/internal/storage/storage_test.go
diff options
context:
space:
mode:
authorbndw <ben@bdw.to>2026-02-13 20:36:12 -0800
committerbndw <ben@bdw.to>2026-02-13 20:36:12 -0800
commit89b8948195f24df127b7ae656ab3f60bd1b49ac7 (patch)
tree2c6fc91e053039e4ad53ee0a72038b1b99f8c50c /internal/storage/storage_test.go
parent656748ea286ff7eac6cbe1b241ad31212892ba61 (diff)
refactor: simplify deletion handling (remove NIP-09 processing)
Remove deletion processing logic in favor of simpler approach: - Remove deletions table from schema - Delete deletions.go and deletions_test.go - Remove ProcessDeletion from EventStore interface - Kind 5 events now stored like any other event (no special handling) - Update storage test to expect 2 tables instead of 3 - All 41 tests passing
Diffstat (limited to 'internal/storage/storage_test.go')
-rw-r--r--internal/storage/storage_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/storage/storage_test.go b/internal/storage/storage_test.go
index f2fe401..89369f4 100644
--- a/internal/storage/storage_test.go
+++ b/internal/storage/storage_test.go
@@ -19,14 +19,14 @@ func TestNew(t *testing.T) {
19 19
20 // Verify schema was created by checking if tables exist 20 // Verify schema was created by checking if tables exist
21 var count int 21 var count int
22 query := `SELECT COUNT(*) FROM sqlite_master WHERE type='table' AND name IN ('events', 'deletions', 'replaceable_events')` 22 query := `SELECT COUNT(*) FROM sqlite_master WHERE type='table' AND name IN ('events', 'replaceable_events')`
23 err = store.DB().QueryRow(query).Scan(&count) 23 err = store.DB().QueryRow(query).Scan(&count)
24 if err != nil { 24 if err != nil {
25 t.Fatalf("failed to query tables: %v", err) 25 t.Fatalf("failed to query tables: %v", err)
26 } 26 }
27 27
28 if count != 3 { 28 if count != 2 {
29 t.Errorf("expected 3 main tables, got %d", count) 29 t.Errorf("expected 2 main tables, got %d", count)
30 } 30 }
31} 31}
32 32