mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-06 12:37:49 +00:00
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 <dave@quobix.com>
This commit is contained in:
@@ -1038,6 +1038,8 @@ components:
|
|||||||
|
|
||||||
assert.GreaterOrEqual(t, len(rolodex.GetIgnoredCircularReferences()), 1)
|
assert.GreaterOrEqual(t, len(rolodex.GetIgnoredCircularReferences()), 1)
|
||||||
assert.Equal(t, rolodex.GetRootIndex().GetResolver().GetIndexesVisited(), 6)
|
assert.Equal(t, rolodex.GetRootIndex().GetResolver().GetIndexesVisited(), 6)
|
||||||
|
assert.Equal(t, int64(1719), rolodex.RolodexFileSize())
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestRolodex_IndexCircularLookup_PolyItemsFileOnly_LocalIncluded(t *testing.T) {
|
func TestRolodex_IndexCircularLookup_PolyItemsFileOnly_LocalIncluded(t *testing.T) {
|
||||||
|
|||||||
@@ -260,7 +260,6 @@ func TestSpecIndex_DigitalOcean_FullCheckoutLocalResolve(t *testing.T) {
|
|||||||
assert.Len(t, rolo.GetCaughtErrors(), 0)
|
assert.Len(t, rolo.GetCaughtErrors(), 0)
|
||||||
assert.Len(t, rolo.GetIgnoredCircularReferences(), 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, "1.27 MB", rolo.RolodexFileSizeAsString())
|
||||||
assert.Equal(t, 1699, rolo.RolodexTotalFiles())
|
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.GetCaughtErrors(), 0)
|
||||||
assert.Len(t, rolo.GetIgnoredCircularReferences(), 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, "1.21 MB", rolo.RolodexFileSizeAsString())
|
||||||
assert.Equal(t, 1685, rolo.RolodexTotalFiles())
|
assert.Equal(t, 1685, rolo.RolodexTotalFiles())
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user