Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavlo Strokov <pstrokov@gitlab.com>2021-10-26 09:49:58 +0300
committerPavlo Strokov <pstrokov@gitlab.com>2021-10-26 12:45:55 +0300
commitb12983d8beb22486fb21594ab6622914e6a89013 (patch)
tree257663415ffc3665588e8109600f4c017551bbe0
parentbc7df325ecc85da1712ee18717b4df6f87589c01 (diff)
test: Remove unused TruncateAllps-enhanced-sql-testing
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.
-rw-r--r--internal/praefect/datastore/glsql/testing.go16
1 files changed, 0 insertions, 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...)