Skip to content

Commit

Permalink
chore: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
simlecode committed Mar 28, 2024
1 parent 0043514 commit 6bbdac9
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions venus-shared/actors/builtin_actors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ func TestEmbeddedMetadata(t *testing.T) {
metadata, err := ReadEmbeddedBuiltinActorsMetadata()
require.NoError(t, err)

for i, v1 := range metadata {
v2 := EmbeddedBuiltinActorsMetadata[i]
require.Equal(t, v1.Network, v2.Network)
require.Equal(t, v1.Version, v2.Version)
require.Equal(t, v1.ManifestCid, v2.ManifestCid)
require.Equal(t, v1.Actors, v2.Actors)
for _, v1 := range metadata {
for _, v2 := range EmbeddedBuiltinActorsMetadata {
if v1.Network == v2.Network && v1.Version == v2.Version {
require.Equalf(t, v1.Version, v2.Version, "network %s, %s", v1.Network, v2.Network)
require.Equal(t, v1.ManifestCid, v2.ManifestCid)
require.Equal(t, v1.Actors, v2.Actors)
}
}
}
}

Expand Down

0 comments on commit 6bbdac9

Please sign in to comment.