From 1ba8b45bec1d1bb7e1e3ab960d6c4ce2f4a392f0 Mon Sep 17 00:00:00 2001 From: Dale McDiarmid Date: Wed, 22 Jun 2022 10:10:16 +0100 Subject: [PATCH] Fix table count --- .../internal/platform/database/native_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/clickhouse-diagnostics/internal/platform/database/native_test.go b/tools/clickhouse-diagnostics/internal/platform/database/native_test.go index 9e83d54c964..1e936fe2449 100644 --- a/tools/clickhouse-diagnostics/internal/platform/database/native_test.go +++ b/tools/clickhouse-diagnostics/internal/platform/database/native_test.go @@ -67,7 +67,7 @@ func TestReadTableNamesForDatabase(t *testing.T) { t.Run("client can read tables for a database", func(t *testing.T) { tables, err := clickhouseClient.ReadTableNamesForDatabase("system") require.Nil(t, err) - require.Greater(t, 70, len(tables)) + require.GreaterOrEqual(t, len(tables), 70) require.Contains(t, tables, "merge_tree_settings") }) }