Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
janezpodhostnik committed May 14, 2024
1 parent e149129 commit 5d0fdaf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fvm/fvm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3368,7 +3368,7 @@ func TestDependencyCheck(t *testing.T) {

deployServiceContractDependencyCheck(fmt.Sprintf(`
access(all) fun checkDependencies(_ dependenciesAddresses: [Address], _ dependenciesNames: [String], _ authorizers: [Address]) {
if authorizers[0] == %s {
if authorizers.length == 1 && authorizers[0] == %s {
return
}
Expand Down Expand Up @@ -3399,7 +3399,7 @@ func TestDependencyCheck(t *testing.T) {
pub event TestEvent(_ dependenciesNames: [String])
access(all) fun checkDependencies(_ dependenciesAddresses: [Address], _ dependenciesNames: [String], _ authorizers: [Address]) {
if authorizers[0] == %s {
if authorizers.length == 1 && authorizers[0] == %s {
return
}
Expand Down Expand Up @@ -3433,7 +3433,7 @@ func TestDependencyCheck(t *testing.T) {

dependencies := payload.(cadence.Event).Fields[0].(cadence.Array).Values

require.Equal(t, []cadence.Value{cadence.String("D"), cadence.String("C"), cadence.String("B"), cadence.String("A")}, dependencies)
require.ElementsMatch(t, []cadence.Value{cadence.String("D"), cadence.String("C"), cadence.String("B"), cadence.String("A")}, dependencies)
},
)
}))
Expand Down

0 comments on commit 5d0fdaf

Please sign in to comment.