diff options
Diffstat (limited to 'internal/storage/storage_test.go')
| -rw-r--r-- | internal/storage/storage_test.go | 6 |
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 | ||
