From 1bb1171b8312e1d85918d3af903befc071b332ec Mon Sep 17 00:00:00 2001 From: joccau Date: Sat, 16 Nov 2024 16:48:01 +0800 Subject: [PATCH] fix unstable case Signed-off-by: joccau --- pkg/domain/db_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/domain/db_test.go b/pkg/domain/db_test.go index 317b35ea222fb..86bedb251331a 100644 --- a/pkg/domain/db_test.go +++ b/pkg/domain/db_test.go @@ -162,7 +162,7 @@ func TestTetchAllSchemasWithTables(t *testing.T) { require.Equal(t, len(dbs), 5) } -func TestTetchAllSchemasWithTablesWithFailpoint(t *testing.T) { +func TestFetchAllSchemasWithTablesWithFailpoint(t *testing.T) { lease := 100 * time.Millisecond store, err := mockstore.NewMockStore() require.NoError(t, err) @@ -194,7 +194,7 @@ func TestTetchAllSchemasWithTablesWithFailpoint(t *testing.T) { require.Equal(t, len(dbs), 1003) // inject the failpoint - require.NoError(t, failpoint.Enable("github.com/pingcap/tidb/pkg/domain/failed-fetch-schemas-with-tables", "1*return()")) + require.NoError(t, failpoint.Enable("github.com/pingcap/tidb/pkg/domain/failed-fetch-schemas-with-tables", "return()")) defer func() { require.NoError(t, failpoint.Disable("github.com/pingcap/tidb/pkg/domain/failed-fetch-schemas-with-tables")) }()