From b12983d8beb22486fb21594ab6622914e6a89013 Mon Sep 17 00:00:00 2001 From: Pavlo Strokov Date: Tue, 26 Oct 2021 09:49:58 +0300 Subject: test: Remove unused TruncateAll The method TruncateAll is not used anymore and should not be used as we don't want our data in the database to be dropped. That is why it is removed now. --- internal/praefect/datastore/glsql/testing.go | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/internal/praefect/datastore/glsql/testing.go b/internal/praefect/datastore/glsql/testing.go index 4335850ea..2152b3ee1 100644 --- a/internal/praefect/datastore/glsql/testing.go +++ b/internal/praefect/datastore/glsql/testing.go @@ -85,22 +85,6 @@ func (db DB) RequireRowsInTable(t *testing.T, tname string, n int) { require.Equal(t, n, count, "unexpected amount of rows in table: %d instead of %d", count, n) } -// TruncateAll removes all data from known set of tables. -func (db DB) TruncateAll(t testing.TB) { - db.Truncate(t, - "replication_queue_job_lock", - "replication_queue", - "replication_queue_lock", - "node_status", - "shard_primaries", - "storage_repositories", - "repositories", - "virtual_storages", - "repository_assignments", - "storage_cleanups", - ) -} - // MustExec executes `q` with `args` and verifies there are no errors. func (db DB) MustExec(t testing.TB, q string, args ...interface{}) { _, err := db.DB.Exec(q, args...) -- cgit v1.2.3