From 7917e6c2854400190cdc8afd59bbe4fc8b32b68a Mon Sep 17 00:00:00 2001 From: quobix Date: Tue, 12 Dec 2023 13:35:06 -0500 Subject: [PATCH] Removed digital ocean rolodex size check from test it keeps on changing, which it should, but updating the tests each time is dumb. Moved to a fixed size test. Signed-off-by: quobix --- index/rolodex_test.go | 2 ++ index/spec_index_test.go | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index/rolodex_test.go b/index/rolodex_test.go index 3b25d27..732ce9f 100644 --- a/index/rolodex_test.go +++ b/index/rolodex_test.go @@ -1038,6 +1038,8 @@ components: assert.GreaterOrEqual(t, len(rolodex.GetIgnoredCircularReferences()), 1) assert.Equal(t, rolodex.GetRootIndex().GetResolver().GetIndexesVisited(), 6) + assert.Equal(t, int64(1719), rolodex.RolodexFileSize()) + } func TestRolodex_IndexCircularLookup_PolyItemsFileOnly_LocalIncluded(t *testing.T) { diff --git a/index/spec_index_test.go b/index/spec_index_test.go index 1c9df7b..cb60bd6 100644 --- a/index/spec_index_test.go +++ b/index/spec_index_test.go @@ -260,7 +260,6 @@ func TestSpecIndex_DigitalOcean_FullCheckoutLocalResolve(t *testing.T) { assert.Len(t, rolo.GetCaughtErrors(), 0) assert.Len(t, rolo.GetIgnoredCircularReferences(), 0) - assert.Equal(t, int64(1333243), rolo.RolodexFileSize()) assert.Equal(t, "1.27 MB", rolo.RolodexFileSizeAsString()) assert.Equal(t, 1699, rolo.RolodexTotalFiles()) @@ -334,7 +333,6 @@ func TestSpecIndex_DigitalOcean_FullCheckoutLocalResolve_RecursiveLookup(t *test assert.Len(t, rolo.GetCaughtErrors(), 0) assert.Len(t, rolo.GetIgnoredCircularReferences(), 0) - assert.Equal(t, int64(1273069), rolo.RolodexFileSize()) assert.Equal(t, "1.21 MB", rolo.RolodexFileSizeAsString()) assert.Equal(t, 1685, rolo.RolodexTotalFiles())